summaryrefslogtreecommitdiff
path: root/fs/btrfs/ordered-data.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2021-04-08 15:32:27 +0300
committerDavid Sterba <dsterba@suse.com>2021-06-21 16:19:08 +0300
commit38a39ac77e089515acbe85c6c70c3df1e728357d (patch)
treeee8afafcc415d18c967c9fbe7ca902f3d35101f5 /fs/btrfs/ordered-data.h
parentfa04c16574c08ddea6885b5cd6a0ecb941bfa3c0 (diff)
downloadlinux-38a39ac77e089515acbe85c6c70c3df1e728357d.tar.xz
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 'fs/btrfs/ordered-data.h')
0 files changed, 0 insertions, 0 deletions