]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
cachefiles: Implement a function to get/create a directory in the cache
authorDavid Howells <dhowells@redhat.com>
Thu, 21 Oct 2021 07:34:55 +0000 (08:34 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 26 Nov 2021 21:23:46 +0000 (21:23 +0000)
commit6243a05ea37bd1657efddcb953b8ad71805ecd6f
tree3be4e66aade1264cbe02e3ff1ed9cabc13dd29f6
parentd5ac0f7ba8088aac254a131664a440166b84f119
cachefiles: Implement a function to get/create a directory in the cache

Implement a function to get/create structural directories in the cache.
This is used for setting up a cache and creating volume substructures.  The
directory in memory are marked with the S_KERNEL_FILE inode flag whilst
they're in use to tell rmdir to reject attempts to remove them.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cachefs@redhat.com
fs/cachefiles/internal.h
fs/cachefiles/namei.c