diff options
author | 2023-03-07 01:53:52 -0500 | |
---|---|---|
committer | 2023-03-12 20:03:41 -0400 | |
commit | ede3ef5c1e0766b309a1bf087e4c50ea02d3f26f (patch) | |
tree | 3bdcc56aa19ebeb541a3fe19b2b604d87aff9d6f /fs/sysv/namei.c | |
parent | fs/sysv: Don't round down address for kunmap_flush_on_unmap() (diff) | |
download | linux-ede3ef5c1e0766b309a1bf087e4c50ea02d3f26f.tar.gz linux-ede3ef5c1e0766b309a1bf087e4c50ea02d3f26f.tar.bz2 linux-ede3ef5c1e0766b309a1bf087e4c50ea02d3f26f.zip |
sysv: switch to put_and_unmap_page()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/sysv/namei.c')
-rw-r--r-- | fs/sysv/namei.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/sysv/namei.c b/fs/sysv/namei.c index a25862773d82..2b2dba4c4f56 100644 --- a/fs/sysv/namei.c +++ b/fs/sysv/namei.c @@ -164,7 +164,7 @@ static int sysv_unlink(struct inode * dir, struct dentry * dentry) inode->i_ctime = dir->i_ctime; inode_dec_link_count(inode); } - dir_put_page(page, de); + put_and_unmap_page(page, de); return err; } @@ -227,7 +227,7 @@ static int sysv_rename(struct mnt_idmap *idmap, struct inode *old_dir, if (!new_de) goto out_dir; err = sysv_set_link(new_de, new_page, old_inode); - dir_put_page(new_page, new_de); + put_and_unmap_page(new_page, new_de); if (err) goto out_dir; new_inode->i_ctime = current_time(new_inode); @@ -256,9 +256,9 @@ static int sysv_rename(struct mnt_idmap *idmap, struct inode *old_dir, out_dir: if (dir_de) - dir_put_page(dir_page, dir_de); + put_and_unmap_page(dir_page, dir_de); out_old: - dir_put_page(old_page, old_de); + put_and_unmap_page(old_page, old_de); out: return err; } |