]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: move btrfs_defrag_root() to defrag.{c,h}
authorFilipe Manana <fdmanana@suse.com>
Fri, 22 Sep 2023 10:37:56 +0000 (11:37 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:13 +0000 (16:44 +0200)
commit1723270f0c29cc27dbe9e554a3f35abd2e4eb945
tree402d7d5ecc50003721ed7edd395299aacf656605
parent8befc61cbba2d4567122d400542da8900a352971
btrfs: move btrfs_defrag_root() to defrag.{c,h}

The btrfs_defrag_root() function does not really belong in the
transaction.{c,h} module and as we have a defrag.{c,h} nowadays,
move it to there instead. This also allows to stop exporting
btrfs_defrag_leaves(), so we can make it static.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ rename info to fs_info for consistency ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/defrag.c
fs/btrfs/defrag.h
fs/btrfs/transaction.c
fs/btrfs/transaction.h