Here's an updated version that changes iomap_folio_prepare() to return an ERR_PTR() instead of NULL when the folio cannot be obtained as suggested by Matthew Wilcox. Thanks, Andreas Andreas Gruenbacher (7): fs: Add folio_may_straddle_isize helper iomap: Add iomap_folio_done helper iomap/gfs2: Unlock and put folio in page_done handler iomap: Add iomap_folio_prepare helper iomap/gfs2: Get page in page_prepare handler iomap/xfs: Eliminate the iomap_valid handler iomap: Rename page_ops to folio_ops fs/buffer.c | 5 +-- fs/ext4/inode.c | 13 +++--- fs/gfs2/bmap.c | 43 ++++++++++++------ fs/iomap/buffered-io.c | 98 ++++++++++++++++++++++-------------------- fs/xfs/xfs_iomap.c | 42 ++++++++++++------ include/linux/iomap.h | 46 +++++++------------- include/linux/mm.h | 2 + mm/truncate.c | 35 +++++++++++++++ 8 files changed, 172 insertions(+), 112 deletions(-) -- 2.38.1