OSDN Git Service

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)
commitf47960f49e59b9d77bd2919c3513dbbe088c3908
tree1fb578a1fb0b8dbceaa755f12bea0e86f34e00f3
parenta6e66e6f8c1b685e11b778bef614480a9c1a5278
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