summaryrefslogtreecommitdiff
path: root/fs/minix/dir.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2024-07-09 20:59:00 -0400
committerChristian Brauner <brauner@kernel.org>2024-08-07 11:31:57 +0200
commitcf04e47128afd071bcb9d0c9806dce835f85356d (patch)
tree5e8340038f82cd59782f673d4ec05f05c84c62ff /fs/minix/dir.c
parentda2c04c15068adaf4a5cce0f47fd7aad97ac8c4f (diff)
minixfs: Convert minix_prepare_chunk() to take a folio
All callers now have a folio, so convert minix_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/minix/dir.c')
-rw-r--r--fs/minix/dir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/minix/dir.c b/fs/minix/dir.c
index 15b3ef1e473c..26bfea508028 100644
--- a/fs/minix/dir.c
+++ b/fs/minix/dir.c
@@ -260,7 +260,7 @@ int minix_add_link(struct dentry *dentry, struct inode *inode)
got_it:
pos = folio_pos(folio) + offset_in_folio(folio, p);
- err = minix_prepare_chunk(&folio->page, pos, sbi->s_dirsize);
+ err = minix_prepare_chunk(folio, pos, sbi->s_dirsize);
if (err)
goto out_unlock;
memcpy (namx, name, namelen);
@@ -292,7 +292,7 @@ int minix_delete_entry(struct minix_dir_entry *de, struct folio *folio)
int err;
folio_lock(folio);
- err = minix_prepare_chunk(&folio->page, pos, len);
+ err = minix_prepare_chunk(folio, pos, len);
if (err) {
folio_unlock(folio);
return err;
@@ -316,7 +316,7 @@ int minix_make_empty(struct inode *inode, struct inode *dir)
if (IS_ERR(folio))
return PTR_ERR(folio);
- err = minix_prepare_chunk(&folio->page, 0, 2 * sbi->s_dirsize);
+ err = minix_prepare_chunk(folio, 0, 2 * sbi->s_dirsize);
if (err) {
folio_unlock(folio);
goto fail;
@@ -413,7 +413,7 @@ int minix_set_link(struct minix_dir_entry *de, struct folio *folio,
int err;
folio_lock(folio);
- err = minix_prepare_chunk(&folio->page, pos, sbi->s_dirsize);
+ err = minix_prepare_chunk(folio, pos, sbi->s_dirsize);
if (err) {
folio_unlock(folio);
return err;