]> git.baikalelectronics.ru Git - kernel.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)
commit1baba3232bee366a2e19e2961c4746505e1a04f3
treef008d7be11f2747b629bdf4d335d20e18f397140
parent8a9cb242ef80b949cb7f3c4675c78bdcf219f7c8
btrfs: move the auto defrag code to defrag.c

[ Upstream commit e6cd6fe484ed5fb8b2ef23617c061ed43a479a6a ]

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: acb24eedce46 ("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