cachefiles: extract ondemand info field from cachefiles_object
authorJia Zhu <zhujia.zj@bytedance.com>
Mon, 20 Nov 2023 04:14:19 +0000 (12:14 +0800)
committerChristian Brauner <brauner@kernel.org>
Sat, 25 Nov 2023 15:03:57 +0000 (16:03 +0100)
commit3c5ecfe16e7699011c12c2d44e55437415331fa3
tree06bc7ea0480057695b8b0d2fd6b3a94307fcb7f9
parent357a18d033143617e9c7d420c8f0dd4cbab5f34d
cachefiles: extract ondemand info field from cachefiles_object

We'll introduce a @work_struct field for @object in subsequent patches,
it will enlarge the size of @object.
As the result of that, this commit extracts ondemand info field from
@object.

Signed-off-by: Jia Zhu <zhujia.zj@bytedance.com>
Link: https://lore.kernel.org/r/20231120041422.75170-3-zhujia.zj@bytedance.com
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/cachefiles/interface.c
fs/cachefiles/internal.h
fs/cachefiles/ondemand.c