summaryrefslogtreecommitdiffstats
path: root/fs/minix
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2024-07-09 20:58:39 +0100
committerChristian Brauner <brauner@kernel.org>2024-07-10 07:15:36 +0200
commit3d1bec293378700dddc087d4d862306702276c23 (patch)
treec534fdc9df7f11bdc3e37db192ad0cce33a9b388 /fs/minix
parent0570730c16307a72f8241df12363f76600baf57d (diff)
downloadlinux-stable-3d1bec293378700dddc087d4d862306702276c23.tar.gz
linux-stable-3d1bec293378700dddc087d4d862306702276c23.tar.bz2
linux-stable-3d1bec293378700dddc087d4d862306702276c23.zip
minixfs: Fix minixfs_rename with HIGHMEM
minixfs now uses kmap_local_page(), so we can't call kunmap() to undo it. This one call was missed as part of the commit this fixes. Fixes: 6628f69ee66a (minixfs: Use dir_put_page() in minix_unlink() and minix_rename()) Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Link: https://lore.kernel.org/r/20240709195841.1986374-1-willy@infradead.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/minix')
-rw-r--r--fs/minix/namei.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/minix/namei.c b/fs/minix/namei.c
index d6031acc34f0..a944a0f17b53 100644
--- a/fs/minix/namei.c
+++ b/fs/minix/namei.c
@@ -213,8 +213,7 @@ static int minix_rename(struct mnt_idmap *idmap,
if (!new_de)
goto out_dir;
err = minix_set_link(new_de, new_page, old_inode);
- kunmap(new_page);
- put_page(new_page);
+ unmap_and_put_page(new_page, new_de);
if (err)
goto out_dir;
inode_set_ctime_current(new_inode);