Unverified Commit 3d1bec29 authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle) Committed by Christian Brauner
Browse files

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: 6628f69e (minixfs: Use dir_put_page() in minix_unlink() and minix_rename())
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20240709195841.1986374-1-willy@infradead.org


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 0570730c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);