diff options
author | Qu Wenruo | 2021-04-08 20:32:27 +0800 |
---|---|---|
committer | David Sterba | 2021-06-21 15:19:08 +0200 |
commit | 38a39ac77e089515acbe85c6c70c3df1e728357d (patch) | |
tree | ee8afafcc415d18c967c9fbe7ca902f3d35101f5 /LICENSES/preferred | |
parent | fa04c16574c08ddea6885b5cd6a0ecb941bfa3c0 (diff) |
btrfs: pass btrfs_inode to btrfs_writepage_endio_finish_ordered()
There is a pretty bad abuse of btrfs_writepage_endio_finish_ordered() in
end_compressed_bio_write().
It passes compressed pages to btrfs_writepage_endio_finish_ordered(),
which is only supposed to accept inode pages.
Thankfully the important info here is the inode, so let's pass
btrfs_inode directly into btrfs_writepage_endio_finish_ordered(), and
make @page parameter optional.
By this, end_compressed_bio_write() can happily pass page=NULL while
still getting everything done properly.
Also, to cooperate with such modification, replace @page parameter for
trace_btrfs_writepage_end_io_hook() with btrfs_inode.
Although this removes page_index info, the existing start/len should be
enough for most usage.
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 'LICENSES/preferred')
0 files changed, 0 insertions, 0 deletions