]> 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)
commit094cc75e3bdf65c26bda3fd427459132fac07b64
treea2d194df06612eee2cfaa79fa05920674caf9d98
parent97459f6800fe8398b3675a643611b1f4ff469813
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