]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: move the auto defrag code to defrag.c
authorJosef Bacik <josef@toxicpanda.com>
Wed, 26 Oct 2022 19:08:23 +0000 (15:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:59:40 +0000 (12:59 +0100)
commitf2e0134b43be591c4e60091a8c9c61762ea4b337
treef008d7be11f2747b629bdf4d335d20e18f397140
parent3fbcd42b3e66c0a14528f9cb707f31e8986c6dc8
btrfs: move the auto defrag code to defrag.c

[ Upstream commit 6e3df18ba7e8e68015dd66bcab326a4b7aaed085 ]

This currently exists in file.c, move it to the more natural location in
defrag.c.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
[ reformat comments ]
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: 519b7e13b5ae ("btrfs: lock the inode in shared mode before starting fiemap")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/file.c
fs/btrfs/tree-defrag.c