Skip to content

Commit

Permalink
btrfs: make end_bio_extent_writepage() to be subpage compatible
Browse files Browse the repository at this point in the history
Now in end_bio_extent_writepage(), the only subpage incompatible code is
the end_page_writeback().

Just call the subpage helpers.

Tested-by: Ritesh Harjani <[email protected]> # [ppc64]
Tested-by: Anand Jain <[email protected]> # [aarch64]
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
adam900710 authored and kdave committed Jun 21, 2021
1 parent e38992b commit 9047e31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2853,7 +2853,8 @@ static void end_bio_extent_writepage(struct bio *bio)
}

end_extent_writepage(page, error, start, end);
end_page_writeback(page);

btrfs_page_clear_writeback(fs_info, page, start, bvec->bv_len);
}

bio_put(bio);
Expand Down

0 comments on commit 9047e31

Please sign in to comment.