summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2026-06-25 15:06:22 +0100
committerChristian Brauner <brauner@kernel.org>2026-07-01 15:26:28 +0200
commit511a018ed2afd8d415edd307ce7ad2048506f6a1 (patch)
tree3eb8d695e31cb4680e49709e81ffc8ff23c0aeb3 /fs
parentaf6830cc12dfe86c832dccc9c9878a93aaa22f83 (diff)
downloadlinux-2.6-511a018ed2afd8d415edd307ce7ad2048506f6a1.tar.gz
linux-2.6-511a018ed2afd8d415edd307ce7ad2048506f6a1.zip
cachefiles: Fix file burial to take lock when unsetting S_KERNEL_FILE
Fix cachefiles_bury_object() to lock the inode of the file being buried whilst it unsets the S_KERNEL_FILE flag. Fixes: 07a90e97400c ("cachefiles: Implement culling daemon commands") Closes: https://sashiko.dev/#/patchset/20260616100821.2062304-1-dhowells%40redhat.com Signed-off-by: David Howells <dhowells@redhat.com> Link: https://patch.msgid.link/20260625140640.3116900-5-dhowells@redhat.com cc: Paulo Alcantara <pc@manguebit.org> cc: NeilBrown <neil@brown.name> cc: netfs@lists.linux.dev cc: linux-fsdevel@vger.kernel.org Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/cachefiles/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cachefiles/namei.c b/fs/cachefiles/namei.c
index 67793898148b..8a9f6be15828 100644
--- a/fs/cachefiles/namei.c
+++ b/fs/cachefiles/namei.c
@@ -374,7 +374,7 @@ try_again:
"Rename failed with error %d", ret);
}
- __cachefiles_unmark_inode_in_use(object, d_inode(rep));
+ cachefiles_do_unmark_inode_in_use(object, d_inode(rep));
end_renaming(&rd);
_leave(" = 0");
return 0;