]> git.ipfire.org Git - people/ms/linux.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)
commit3478c732520a01561bb49f8c5d469f02419fd922
treed51c87c19be00d0b4238a2b68e07cb4af0f4037b
parent826582cabc22e741ef3d420fd53b83de988b5647
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