btrfs: move the auto defrag code to defrag.c

[ Upstream commit 6e3df18ba7 ]

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: 519b7e13b5 ("btrfs: lock the inode in shared mode before starting fiemap")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Josef Bacik 2022-10-26 15:08:23 -04:00 • committed by Greg Kroah-Hartman
commit f2e0134b43
2 changed files with 337 additions and 340 deletions