]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: fix to call clear_page_private_reference in .{release,invalid}_folio
authorChao Yu <chao@kernel.org>
Sat, 23 Aug 2025 02:50:08 +0000 (22:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:26:15 +0000 (16:26 +0200)
commit1efdc57d4293cc8365911d2096cc80f0a2cbbbcb
tree25fbe22923ceacf92a9c8b55e685e811f46d7062
parent43d26997d88c4056fce0324e72f62556bc7e8e8d
f2fs: fix to call clear_page_private_reference in .{release,invalid}_folio

[ Upstream commit 6779b5db90c5b925293f7ccc5ed5336c5b24ed50 ]

b763f3bedc2d ("f2fs: restructure f2fs page.private layout") missed
to call clear_page_private_reference() in .{release,invalid}_folio,
fix it, though it's not a big deal since folio_detach_private() was
called to clear all privae info and reference count in the page.

BTW, remove page_private_reference() definition as it never be used.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: 77de19b6867f ("f2fs: fix to avoid out-of-boundary access in dnode page")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h