summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/bmap.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-05-19 16:18:05 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2023-07-24 18:04:30 -0400
commitd6bb59a9444d218dc60dee3b45fd93c0d4f5e123 (patch)
tree446d98b7105177d2867ae2246e3107681d480b11 /fs/gfs2/bmap.c
parent4f66170119107f1452d2438ba4606e105e9e3afe (diff)
downloadlinux-d6bb59a9444d218dc60dee3b45fd93c0d4f5e123.tar.gz
linux-d6bb59a9444d218dc60dee3b45fd93c0d4f5e123.tar.bz2
linux-d6bb59a9444d218dc60dee3b45fd93c0d4f5e123.zip
iomap: Create large folios in the buffered write path
Use the size of the write as a hint for the size of the folio to create. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r--fs/gfs2/bmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index 8d611fbcf0bd..521d1e00a0ff 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -971,7 +971,7 @@ gfs2_iomap_get_folio(struct iomap_iter *iter, loff_t pos, unsigned len)
if (status)
return ERR_PTR(status);
- folio = iomap_get_folio(iter, pos);
+ folio = iomap_get_folio(iter, pos, len);
if (IS_ERR(folio))
gfs2_trans_end(sdp);
return folio;