Centos-kernel-stream-9/fs/cachefiles
Ian Kent bb067a12f6 fscache,cachefiles: add prepare_ondemand_read() callback
JIRA: https://issues.redhat.com/browse/RHEL-31991
Upstream status: Linus

commit 8669247524c73e16e4d3384c4ff882e5c5d06194
Author: Jingbo Xu <jefflexu@linux.alibaba.com>
Date:   Thu Nov 24 11:42:11 2022 +0800

    fscache,cachefiles: add prepare_ondemand_read() callback

    Add prepare_ondemand_read() callback dedicated for the on-demand read
    scenario, so that callers from this scenario can be decoupled from
    netfs_io_subrequest.

    The original cachefiles_prepare_read() is now refactored to a generic
    routine accepting a parameter list instead of netfs_io_subrequest.
    There's no logic change, except that the debug id of subrequest and
    request is removed from trace_cachefiles_prep_read().

    Reviewed-by: Jeff Layton <jlayton@kernel.org>
    Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
    Acked-by: David Howells <dhowells@redhat.com>
    Link: https://lore.kernel.org/r/20221124034212.81892-2-jefflexu@linux.alibaba.com
    Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>

Signed-off-by: Ian Kent <ikent@redhat.com>
2025-01-17 19:08:44 +08:00
..
Kconfig cachefiles: notify the user daemon when looking up cookie 2022-08-22 12:32:27 -04:00
Makefile cachefiles: notify the user daemon when looking up cookie 2022-08-22 12:32:27 -04:00
cache.c fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmap 2024-10-16 11:02:01 +08:00
daemon.c cachefiles: fix memory leak in cachefiles_add_cache() 2024-06-10 18:08:11 +02:00
error_inject.c cachefiles: Add some error injection support 2022-08-22 12:31:34 -04:00
interface.c fs: port vfs_*() helpers to struct mnt_idmap 2024-10-16 08:29:51 +08:00
internal.h cachefiles: implement on-demand read 2022-08-22 12:32:27 -04:00
io.c fscache,cachefiles: add prepare_ondemand_read() callback 2025-01-17 19:08:44 +08:00
key.c cachefiles: Implement key to filename encoding 2022-08-22 12:31:35 -04:00
main.c cachefiles: Implement object lifecycle funcs 2022-08-22 12:31:35 -04:00
namei.c Merge: CVE-2024-49870: cachefiles: fix dentry leak in cachefiles_open_file() 2024-12-11 14:23:28 +00:00
ondemand.c cachefiles: narrow the scope of flushed requests when releasing fd 2022-08-22 12:32:28 -04:00
security.c cachefiles: Add security derivation 2022-08-22 12:31:35 -04:00
volume.c cachefiles: fix slab-use-after-free in cachefiles_withdraw_cookie() 2024-08-01 17:42:30 +02:00
xattr.c fs: port ->permission() to pass mnt_idmap 2024-10-16 10:45:20 +08:00