]> git.baikalelectronics.ru Git - kernel.git/commit
cachefiles: Implement object lifecycle funcs
authorDavid Howells <dhowells@redhat.com>
Wed, 17 Nov 2021 16:22:21 +0000 (16:22 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 7 Jan 2022 13:42:08 +0000 (13:42 +0000)
commit962c9adcf29cf2273da1b0bc01ea330e7b14b66f
tree626bfd7ea0af245966ca301cc7b1c1f28c38f9de
parentca7741a3cb18024e8b81106884336c2e5fa9aa2a
cachefiles: Implement object lifecycle funcs

Implement allocate, get, see and put functions for the cachefiles_object
struct.  The members of the struct we're going to need are also added.

Additionally, implement a lifecycle tracepoint.

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/163819639457.215744.4600093239395728232.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/163906939569.143852.3594314410666551982.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/163967148857.1823006.6332962598220464364.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/164021547762.640689.8422781599594931000.stgit@warthog.procyon.org.uk/
fs/cachefiles/interface.c
fs/cachefiles/internal.h
fs/cachefiles/main.c
include/trace/events/cachefiles.h
include/trace/events/fscache.h