summaryrefslogtreecommitdiff
path: root/fs/btrfs/zoned.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2023-04-04 22:55:12 +0800
committerDavid Sterba <dsterba@suse.com>2023-04-17 18:01:23 +0200
commitf0bb5474cff02ce24dd2599114a894f39aea03e6 (patch)
treed9fa4489148231cc41f33fc4641f19a1d84c7bd4 /fs/btrfs/zoned.c
parent1f16033c992971d5a630a038bd0ca8a5067527ef (diff)
btrfs: remove redundant release of btrfs_device::alloc_state
Commit 321f69f86a0f ("btrfs: reset device back to allocation state when removing") included adding extent_io_tree_release(&device->alloc_state) to btrfs_close_one_device(), which had already been called in btrfs_free_device(). The alloc_state tree (IO_TREE_DEVICE_ALLOC_STATE), is created in btrfs_alloc_device() and released in btrfs_close_one_device(). Therefore, the additional call to extent_io_tree_release(&device->alloc_state) in btrfs_free_device() is unnecessary and can be removed. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/zoned.c')
0 files changed, 0 insertions, 0 deletions