]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: get rid of root->orphan_cleanup_state
authorJosef Bacik <josef@toxicpanda.com>
Tue, 9 Nov 2021 15:12:06 +0000 (10:12 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:45 +0000 (15:09 +0100)
commitea8b6a6b9c8b6005151502f6593f308097e8c353
tree892e00575744e71a77b27b6104bcd23fa56fb59c
parent68951e6a43a72d30e5cb6accc421efe5e0674dc2
btrfs: get rid of root->orphan_cleanup_state

Now that we don't care about the stage of the orphan_cleanup_state,
simply replace it with a bit on ->state to make sure we don't call the
orphan cleanup every time we wander into this root.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/inode.c