diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-07-08 17:47:06 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-08-07 11:31:52 +0200 |
commit | 128d1e89acb978bf6a4ec0d04bbfe8cb801965be (patch) | |
tree | 40ee96c441cd69c1ec488cf857a12f2ac1bf16e2 /fs/ufs/inode.c | |
parent | f4a20e53aba74b406f3becf28cc3776ad38153e7 (diff) | |
download | lwn-128d1e89acb978bf6a4ec0d04bbfe8cb801965be.tar.gz lwn-128d1e89acb978bf6a4ec0d04bbfe8cb801965be.zip |
ufs: Convert ufs_prepare_chunk() to take a folio
All callers now have a folio, so convert ufs_prepare_chunk() to take one.
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/ufs/inode.c')
-rw-r--r-- | fs/ufs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index a7bb2e63cdde..0e608fc0d0fd 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c @@ -479,9 +479,9 @@ static int ufs_read_folio(struct file *file, struct folio *folio) return block_read_full_folio(folio, ufs_getfrag_block); } -int ufs_prepare_chunk(struct page *page, loff_t pos, unsigned len) +int ufs_prepare_chunk(struct folio *folio, loff_t pos, unsigned len) { - return __block_write_begin(page, pos, len, ufs_getfrag_block); + return __block_write_begin(&folio->page, pos, len, ufs_getfrag_block); } static void ufs_truncate_blocks(struct inode *); |