]> 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)
commit020d18420eba840080768c1cb8c89c7d69ad8083
tree1fb578a1fb0b8dbceaa755f12bea0e86f34e00f3
parentb4377748972e4b6278a497e1adda9b593004bd9b
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