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>
This commit is contained in:
parent
6c9ac8be45
commit
2d8ec40ee4
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue