diff options
| author | Filipe Manana <[email protected]> | 2024-04-29 13:01:09 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-07-11 13:33:17 +0000 |
| commit | d25f4ec17624b1b18ff2e0a3e9c2baa71c8a86f2 (patch) | |
| tree | a8498595d0c4e0b2355623a7364023b7cffe3a1c /fs/btrfs/dev-replace.c | |
| parent | btrfs: preallocate inodes xarray entry to avoid transaction abort (diff) | |
| download | kernel-d25f4ec17624b1b18ff2e0a3e9c2baa71c8a86f2.tar.gz kernel-d25f4ec17624b1b18ff2e0a3e9c2baa71c8a86f2.zip | |
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 <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
