diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-03-06 17:37:19 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2023-12-19 03:07:29 +0100 |
commit | 41e9a7faff514fcb2d4396b0ffde30386a153c7f (patch) | |
tree | 7697f8d196a72e5d54b7a3808f0fe57bc977e376 /fs/minix/namei.c | |
parent | minixfs: Use dir_put_page() in minix_unlink() and minix_rename() (diff) | |
download | linux-41e9a7faff514fcb2d4396b0ffde30386a153c7f.tar.xz linux-41e9a7faff514fcb2d4396b0ffde30386a153c7f.zip |
minixfs: switch to kmap_local_page()
Again, a counterpart of Fabio's fs/sysv patch
Reviewed-by: Fabio M. De Francesco <fabio.maria.de.francesco@linux.intel.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/minix/namei.c')
-rw-r--r-- | fs/minix/namei.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/minix/namei.c b/fs/minix/namei.c index 20923a15e30a..d6031acc34f0 100644 --- a/fs/minix/namei.c +++ b/fs/minix/namei.c @@ -149,7 +149,7 @@ static int minix_unlink(struct inode * dir, struct dentry *dentry) if (!de) return -ENOENT; err = minix_delete_entry(de, page); - dir_put_page(page); + unmap_and_put_page(page, de); if (err) return err; @@ -242,9 +242,9 @@ static int minix_rename(struct mnt_idmap *idmap, } out_dir: if (dir_de) - dir_put_page(dir_page); + unmap_and_put_page(dir_page, dir_de); out_old: - dir_put_page(old_page); + unmap_and_put_page(old_page, old_de); out: return err; } |