iomap: Don't create iomap_page objects for inline files
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 15 Jul 2021 16:58:05 +0000 (09:58 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 15 Jul 2021 16:58:05 +0000 (09:58 -0700)
commit637d3375953e052a62c0db409557e3b3354be88a
treec94345add21f71bc52fde903629875a082ff998c
parent8e1bcef8e18d0fec4afe527c074bb1fd6c2b140c
iomap: Don't create iomap_page objects for inline files

In iomap_readpage_actor, don't create iop objects for inline inodes.
Otherwise, iomap_read_inline_data will set PageUptodate without setting
iop->uptodate, and iomap_page_release will eventually complain.

To prevent this kind of bug from occurring in the future, make sure the
page doesn't have private data attached in iomap_read_inline_data.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/buffered-io.c