minixfs: Fix minixfs_rename with HIGHMEM

[ Upstream commit 3d1bec2933 ]

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: 6628f69ee6 (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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Matthew Wilcox (Oracle)
2024-07-09 20:58:39 +01:00
committed by Greg Kroah-Hartman
parent 84aaaa796a
commit fbd4f53c11

View File

@@ -213,8 +213,7 @@ static int minix_rename(struct mnt_idmap *idmap,
if (!new_de) if (!new_de)
goto out_dir; goto out_dir;
err = minix_set_link(new_de, new_page, old_inode); err = minix_set_link(new_de, new_page, old_inode);
kunmap(new_page); unmap_and_put_page(new_page, new_de);
put_page(new_page);
if (err) if (err)
goto out_dir; goto out_dir;
inode_set_ctime_current(new_inode); inode_set_ctime_current(new_inode);