* [PATCH] minixfs: Fix minixfs_rename with HIGHMEM
@ 2024-07-09 19:58 Matthew Wilcox (Oracle)
2024-07-10 5:17 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Wilcox (Oracle) @ 2024-07-09 19:58 UTC (permalink / raw)
To: Al Viro, Christian Brauner
Cc: Matthew Wilcox (Oracle), linux-fsdevel, Fabio M . De Francesco
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>
---
fs/minix/namei.c | 3 +--
1 file changed, 1 insertion(+), 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);
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] minixfs: Fix minixfs_rename with HIGHMEM
2024-07-09 19:58 [PATCH] minixfs: Fix minixfs_rename with HIGHMEM Matthew Wilcox (Oracle)
@ 2024-07-10 5:17 ` Christian Brauner
0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2024-07-10 5:17 UTC (permalink / raw)
To: Matthew Wilcox (Oracle)
Cc: Christian Brauner, linux-fsdevel, Fabio M . De Francesco, Al Viro
On Tue, 09 Jul 2024 20:58:39 +0100, Matthew Wilcox (Oracle) wrote:
> 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.
>
>
Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes
[1/1] minixfs: Fix minixfs_rename with HIGHMEM
https://git.kernel.org/vfs/vfs/c/3d1bec293378
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-10 5:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-09 19:58 [PATCH] minixfs: Fix minixfs_rename with HIGHMEM Matthew Wilcox (Oracle)
2024-07-10 5:17 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).