diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-07-10 20:51:11 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-08-07 11:31:59 +0200 |
commit | 97edbc02b2efdb0cd0f507b6a45fc509acc861bb (patch) | |
tree | 5922b2c855c5b53e8dcb5cf63ff961d9097277ab /fs/sysv | |
parent | ntfs3: Remove reset_log_file() (diff) | |
download | linux-97edbc02b2efdb0cd0f507b6a45fc509acc861bb.tar.xz 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 'fs/sysv')
-rw-r--r-- | fs/sysv/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysv/dir.c b/fs/sysv/dir.c index 27eaa5273ba7..639307e2ff8c 100644 --- a/fs/sysv/dir.c +++ b/fs/sysv/dir.c @@ -33,7 +33,7 @@ static void dir_commit_chunk(struct folio *folio, loff_t pos, unsigned len) struct address_space *mapping = folio->mapping; struct inode *dir = mapping->host; - block_write_end(NULL, mapping, pos, len, len, &folio->page, NULL); + block_write_end(NULL, mapping, pos, len, len, folio, NULL); if (pos+len > dir->i_size) { i_size_write(dir, pos+len); mark_inode_dirty(dir); |