]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: make btrfs_set_range_writeback() subpage compatible
authorQu Wenruo <wqu@suse.com>
Mon, 31 May 2021 08:50:49 +0000 (16:50 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jun 2021 13:19:10 +0000 (15:19 +0200)
commit3b5c085a0277f57cf2a6f0eb36d6e8ecf1909481
treea2d194df06612eee2cfaa79fa05920674caf9d98
parentd86bd506e39ec160ac76765ba8a79214f102ec5d
btrfs: make btrfs_set_range_writeback() subpage compatible

Function btrfs_set_range_writeback() currently just sets the page
writeback unconditionally.

Change it to call the subpage helper so that we can handle both cases
well.

Since the subpage helpers needs btrfs_fs_info, also change the parameter
to accept btrfs_inode.

Tested-by: Ritesh Harjani <riteshh@linux.ibm.com> # [ppc64]
Tested-by: Anand Jain <anand.jain@oracle.com> # [aarch64]
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/extent_io.c
fs/btrfs/inode.c