]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: reloc: factor out relocation page read and dirty part
authorQu Wenruo <wqu@suse.com>
Mon, 26 Jul 2021 06:34:56 +0000 (14:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Aug 2021 11:19:04 +0000 (13:19 +0200)
commitb468c1667f1ccbfe1bb274fcb6862b95be43495a
tree1fb578a1fb0b8dbceaa755f12bea0e86f34e00f3
parentec56096a045db8edd64e2ea328564e11bff76403
btrfs: reloc: factor out relocation page read and dirty part

In function relocate_file_extent_cluster(), we have a big loop for
marking all involved page delalloc.

That part is long enough to be contained in one function, so this patch
will move that code chunk into a new function, relocate_one_page().

This also provides enough space for later subpage work.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c