diff options
author | Qu Wenruo <[email protected]> | 2021-05-31 16:50:43 +0800 |
---|---|---|
committer | David Sterba <[email protected]> | 2021-06-21 15:19:09 +0200 |
commit | 9047e3170a06f60a96a1d4a2f7762000657c7bbb (patch) | |
tree | 5b887dc585143b6dcc1ff5575756c674d328fa93 | |
parent | e38992be1f6cf3ed88169347b7d92cec40cc44d3 (diff) |
btrfs: make end_bio_extent_writepage() to be subpage compatible
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]>
-rw-r--r-- | fs/btrfs/extent_io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 3ecd23c6b955..4220ef4ff7d0 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -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); |