summaryrefslogtreecommitdiffstats
path: root/fs/iomap
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2024-07-10 14:51:11 -0400
committerChristian Brauner <brauner@kernel.org>2024-08-07 11:31:59 +0200
commit97edbc02b2efdb0cd0f507b6a45fc509acc861bb (patch)
tree5922b2c855c5b53e8dcb5cf63ff961d9097277ab /fs/iomap
parentc4c9c89c8c8ec1bcb0fad951b91da0d3a7569a71 (diff)
downloadlinux-stable-97edbc02b2efdb0cd0f507b6a45fc509acc861bb.tar.gz
linux-stable-97edbc02b2efdb0cd0f507b6a45fc509acc861bb.tar.bz2
linux-stable-97edbc02b2efdb0cd0f507b6a45fc509acc861bb.zip
buffer: Convert block_write_end() to take a folio
All callers now have a folio, so pass it in instead of converting from a folio to a page and back to a folio again. Saves a call to compound_head(). Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/iomap')
-rw-r--r--fs/iomap/buffered-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c
index f420c53d86ac..9b4ca3811a24 100644
--- a/fs/iomap/buffered-io.c
+++ b/fs/iomap/buffered-io.c
@@ -900,7 +900,7 @@ static bool iomap_write_end(struct iomap_iter *iter, loff_t pos, size_t len,
size_t bh_written;
bh_written = block_write_end(NULL, iter->inode->i_mapping, pos,
- len, copied, &folio->page, NULL);
+ len, copied, folio, NULL);
WARN_ON_ONCE(bh_written != copied && bh_written != 0);
return bh_written == copied;
}