diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-07-10 14:51:11 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-08-07 11:31:59 +0200 |
commit | 97edbc02b2efdb0cd0f507b6a45fc509acc861bb (patch) | |
tree | 5922b2c855c5b53e8dcb5cf63ff961d9097277ab /block/fops.c | |
parent | c4c9c89c8c8ec1bcb0fad951b91da0d3a7569a71 (diff) | |
download | linux-97edbc02b2efdb0cd0f507b6a45fc509acc861bb.tar.gz linux-97edbc02b2efdb0cd0f507b6a45fc509acc861bb.tar.bz2 linux-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 'block/fops.c')
-rw-r--r-- | block/fops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/fops.c b/block/fops.c index da44fedb23e5..df0e762cf397 100644 --- a/block/fops.c +++ b/block/fops.c @@ -462,7 +462,7 @@ static int blkdev_write_end(struct file *file, struct address_space *mapping, { struct folio *folio = page_folio(page); int ret; - ret = block_write_end(file, mapping, pos, len, copied, page, fsdata); + ret = block_write_end(file, mapping, pos, len, copied, folio, fsdata); folio_unlock(folio); folio_put(folio); |