diff options
author | Qu Wenruo <wqu@suse.com> | 2021-05-31 16:50:52 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-06-21 15:19:10 +0200 |
commit | 2d8ec40ee46d211fa8396678210faf19e013b093 (patch) | |
tree | d4d2e0b465fd9a4a9ad95440b764a19a8fb96fef /fs | |
parent | 6c9ac8be458152a6316cf28fcd52c7f38f7ec8ec (diff) | |
download | linux-2d8ec40ee46d211fa8396678210faf19e013b093.tar.gz linux-2d8ec40ee46d211fa8396678210faf19e013b093.tar.bz2 linux-2d8ec40ee46d211fa8396678210faf19e013b093.zip |
btrfs: make btrfs_page_mkwrite() to be subpage compatible
Only set_page_dirty() and SetPageUptodate() is not subpage compatible.
Convert them to subpage helpers, so that __extent_writepage_io() can
submit page content correctly.
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 88838ef22413..0d67a14114e7 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8651,8 +8651,8 @@ again: flush_dcache_page(page); } ClearPageChecked(page); - set_page_dirty(page); - SetPageUptodate(page); + btrfs_page_set_dirty(fs_info, page, page_start, end + 1 - page_start); + btrfs_page_set_uptodate(fs_info, page, page_start, end + 1 - page_start); btrfs_set_inode_last_sub_trans(BTRFS_I(inode)); |