Skip to content

Commit

Permalink
btrfs: make btrfs_page_mkwrite() to be subpage compatible
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Qu Wenruo authored and David Sterba committed Jun 21, 2021
1 parent 6c9ac8b commit 2d8ec40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -8651,8 +8651,8 @@ vm_fault_t btrfs_page_mkwrite(struct vm_fault *vmf)
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));

Expand Down

0 comments on commit 2d8ec40

Please sign in to comment.