summaryrefslogtreecommitdiff
path: root/fs/cachefiles/daemon.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2021-11-18 11:58:08 +0300
committerDavid Howells <dhowells@redhat.com>2022-01-07 16:42:29 +0300
commit169379eaef933ca98c279257cacb313a02f9984d (patch)
treef6f4ebe27265f948217b25a3adde5685f90d4806 /fs/cachefiles/daemon.c
parent72b957856b0c09eee542afcff29705dd0adda654 (diff)
downloadlinux-169379eaef933ca98c279257cacb313a02f9984d.tar.xz
cachefiles: Mark a backing file in use with an inode flag
Use an inode flag, S_KERNEL_FILE, to mark that a backing file is in use by the kernel to prevent cachefiles or other kernel services from interfering with that file. Using S_SWAPFILE instead isn't really viable as that has other effects in the I/O paths. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> cc: linux-cachefs@redhat.com Link: https://lore.kernel.org/r/163819642273.215744.6414248677118690672.stgit@warthog.procyon.org.uk/ # v1 Link: https://lore.kernel.org/r/163906943215.143852.16972351425323967014.stgit@warthog.procyon.org.uk/ # v2 Link: https://lore.kernel.org/r/163967154118.1823006.13227551961786743991.stgit@warthog.procyon.org.uk/ # v3 Link: https://lore.kernel.org/r/164021541207.640689.564689725898537127.stgit@warthog.procyon.org.uk/ # v4 Link: https://lore.kernel.org/r/164021552299.640689.10578652796777392062.stgit@warthog.procyon.org.uk/ # v4
Diffstat (limited to 'fs/cachefiles/daemon.c')
0 files changed, 0 insertions, 0 deletions