Skip to content

Commit 3d1bec2

Browse files
Matthew Wilcox (Oracle)brauner
authored andcommitted
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: 6628f69 (minixfs: Use dir_put_page() in minix_unlink() and minix_rename()) Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 0570730 commit 3d1bec2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/minix/namei.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ static int minix_rename(struct mnt_idmap *idmap,
213213
if (!new_de)
214214
goto out_dir;
215215
err = minix_set_link(new_de, new_page, old_inode);
216-
kunmap(new_page);
217-
put_page(new_page);
216+
unmap_and_put_page(new_page, new_de);
218217
if (err)
219218
goto out_dir;
220219
inode_set_ctime_current(new_inode);

0 commit comments

Comments
 (0)