]> git.itanic.dy.fi Git - linux-stable/commit
bcachefs: Remove a redundant and harmless bch2_free_super() call
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 13 Sep 2023 16:44:09 +0000 (18:44 +0200)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:13 +0000 (17:10 -0400)
commit0198b2356b5d0343ce933f8387a74972be6a2b10
tree51c857980a7fd8dd86d659275946f803391bd682
parent71933fb69b7c5fe5efd2119b645d4fde337a6f3f
bcachefs: Remove a redundant and harmless bch2_free_super() call

Remove a redundant call to bch2_free_super().

This is harmless because bch2_free_super() has a memset() at its end. So
a second call would only lead to from kfree(NULL).

Remove the redundant call and only rely on the error handling path.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super.c