]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: reduce nesting and deduplicate error handling at btrfs_iget_path()
authorFilipe Manana <fdmanana@suse.com>
Mon, 29 Apr 2024 13:01:09 +0000 (14:01 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:17 +0000 (15:33 +0200)
commitd25f4ec17624b1b18ff2e0a3e9c2baa71c8a86f2
treea8498595d0c4e0b2355623a7364023b7cffe3a1c
parent061ea8581b2e0ade913c8f5cd845e801976a577b
btrfs: reduce nesting and deduplicate error handling at btrfs_iget_path()

Make btrfs_iget_path() simpler and easier to read by avoiding nesting of
if-then-else statements and having an error label to do all the error
handling instead of repeating it a couple times.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c