diff options
author | Josef Bacik <josef@toxicpanda.com> | 2021-11-09 10:12:06 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-01-03 15:09:45 +0100 |
commit | 54230013d41fb6eb231755dfec8615db9dcfb020 (patch) | |
tree | 892e00575744e71a77b27b6104bcd23fa56fb59c /fs/btrfs/disk-io.c | |
parent | 6dbdd578cd4fcb88ad9e57777a140e3349323e28 (diff) |
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>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 67533b13e1eb..d94a1ca856aa 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -1144,7 +1144,6 @@ static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, root->node = NULL; root->commit_root = NULL; root->state = 0; - root->orphan_cleanup_state = 0; root->last_trans = 0; root->free_objectid = 0; |