]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitafc9c3af7220baf0487931927946a534a3cb2dab
treec94345add21f71bc52fde903629875a082ff998c
parentf6616a4b26d7581ff76d2c4d306d4eaf8f3e174d
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