]> www.infradead.org Git - users/dwmw2/linux.git/commit
btrfs: rename err to ret in btrfs_cleanup_fs_roots()
authorAnand Jain <anand.jain@oracle.com>
Tue, 19 Mar 2024 14:55:09 +0000 (20:25 +0530)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:21 +0000 (15:33 +0200)
commit53d6c0da0a6bb9f945e5b4bc88701e51e172a087
tree814132de5e60d75bceb0464d313ac905d92f104d
parent04ef7631bfa5247dfce8f1858be6f0f76ff0e299
btrfs: rename err to ret in btrfs_cleanup_fs_roots()

Since err represents the function return value, rename it as ret,
and rename the original ret, which serves as a helper return value,
to found. Also, optimize the code to continue call btrfs_put_root()
for the rest of the root if even after btrfs_orphan_cleanup() returns
error.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c