]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cachefiles,netfs: sunset ondemand mode
authorGao Xiang <xiang@kernel.org>
Wed, 12 Aug 2026 14:15:27 +0000 (15:15 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 12 Aug 2026 14:24:26 +0000 (16:24 +0200)
commit949eb95d5bcc530e6ce74cc95897c1849c53ea89
tree3faf5fa1ff9f87a25c39c372f13bb703b0759365
parentdb2ddb87143519e20a95aa36c60b36107b736a58
cachefiles,netfs: sunset ondemand mode

It was an effort to enhance fscache as a kernel cache for lazy
pulling (at least according to previous Incremental FS discussion [1])
and EROFS over fscache was the in-tree user of this mode.

fscache has since evolved to be netfslib-oriented, serving network
filesystem inodes via the netfs library, but EROFS never acts as a
network filesystem and we need to cache golden filesystem images rather
than individual EROFS inodes.

Since EROFS over fscache is now removed, clean up netfs/fscache/
cachefiles upstream too.

[1] https://lore.kernel.org/r/CAOQ4uxi4dzxArY24YO=+kBCK2gGoq3Ptb8WkzCqSogPgU_R3dQ@mail.gmail.com

[dh] Fixed up comments on:
https://sashiko.dev/#/patchset/20260716103030.3065561-1-dhowells%40redhat.com
https://sashiko.dev/#/patchset/20260722130218.78958-1-dhowells%40redhat.com

Signed-off-by: Gao Xiang <xiang@kernel.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://patch.msgid.link/1046393.1786544127@warthog.procyon.org.uk
cc: Paulo Alcantara <pc@manguebit.org>
cc: netfs@lists.linux.dev
cc: linux-erofs@lists.ozlabs.org
cc: bpf@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
13 files changed:
Documentation/filesystems/caching/cachefiles.rst
fs/cachefiles/Kconfig
fs/cachefiles/Makefile
fs/cachefiles/daemon.c
fs/cachefiles/interface.c
fs/cachefiles/internal.h
fs/cachefiles/io.c
fs/cachefiles/namei.c
fs/cachefiles/ondemand.c [deleted file]
include/linux/netfs.h
include/trace/events/cachefiles.h
include/uapi/linux/cachefiles.h [deleted file]
kernel/bpf/btf.c