]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove unnecessary extent root check in btrfs_defrag_leaves
authorJosef Bacik <josef@toxicpanda.com>
Fri, 5 Nov 2021 20:45:40 +0000 (16:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:48 +0000 (15:09 +0100)
commit03c4c35f2432be1271a8d55b675d67a583dee496
treed51c87c19be00d0b4238a2b68e07cb4af0f4037b
parent987869f97bdaaffb4878c821e7aec8a0de988217
btrfs: remove unnecessary extent root check in btrfs_defrag_leaves

We only defrag leaves on roots that have SHAREABLE set, so we don't need
to check if we're the extent root as it doesn't have SHAREABLE set.

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/tree-defrag.c