diff options
| author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2025-06-24 14:21:27 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-06-24 15:53:40 +0200 |
| commit | b39f7d75dc41b5f5d028192cd5d66cff71179f35 (patch) | |
| tree | 5b7f4f6e62ee183c49c8646b95108430aeb1e7ca /fs/nilfs2 | |
| parent | fs/ecryptfs: replace snprintf with sysfs_emit in show function (diff) | |
| download | linux-b39f7d75dc41b5f5d028192cd5d66cff71179f35.tar.gz linux-b39f7d75dc41b5f5d028192cd5d66cff71179f35.zip | |
fs: Remove three arguments from block_write_end()
block_write_end() looks like it can be used as a ->write_end()
implementation. However, it can't as it does not unlock nor put
the folio. Since it does not use the 'file', 'mapping' nor 'fsdata'
arguments, remove them.
Signed-off-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Link: https://lore.kernel.org/20250624132130.1590285-1-willy@infradead.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/nilfs2')
| -rw-r--r-- | fs/nilfs2/dir.c | 2 | ||||
| -rw-r--r-- | fs/nilfs2/recovery.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/fs/nilfs2/dir.c b/fs/nilfs2/dir.c index 9b7f8e9655a2..6ca3d74be1e1 100644 --- a/fs/nilfs2/dir.c +++ b/fs/nilfs2/dir.c @@ -96,7 +96,7 @@ static void nilfs_commit_chunk(struct folio *folio, int err; nr_dirty = nilfs_page_count_clean_buffers(folio, from, to); - copied = block_write_end(NULL, mapping, pos, len, len, folio, NULL); + copied = block_write_end(pos, len, len, folio); if (pos + copied > dir->i_size) i_size_write(dir, pos + copied); if (IS_DIRSYNC(dir)) diff --git a/fs/nilfs2/recovery.c b/fs/nilfs2/recovery.c index 22aecf6e2344..a9c61d0492cb 100644 --- a/fs/nilfs2/recovery.c +++ b/fs/nilfs2/recovery.c @@ -560,8 +560,7 @@ static int nilfs_recover_dsync_blocks(struct the_nilfs *nilfs, if (unlikely(err)) goto failed_folio; - block_write_end(NULL, inode->i_mapping, pos, blocksize, - blocksize, folio, NULL); + block_write_end(pos, blocksize, blocksize, folio); folio_unlock(folio); folio_put(folio); |
