]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
fscache: Provide a function to resize a cookie
authorDavid Howells <dhowells@redhat.com>
Wed, 20 Oct 2021 13:06:34 +0000 (14:06 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 26 Nov 2021 14:28:54 +0000 (14:28 +0000)
commit7ef093bc312d11dcbac83f42060c1212c573aa95
treedc7eb1da26ec6d8732cb909081819e5b9557237c
parentadaf02723b5d42a570ea3faf1a56a94342efa127
fscache: Provide a function to resize a cookie

Provide a function to change the size of the storage attached to a cookie,
to match the size of the file being cached when it's changed by truncate or
fallocate:

void fscache_resize_cookie(struct fscache_cookie *cookie,
   loff_t new_size);

This acts synchronously and is expected to run under the inode lock of the
caller.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cachefs@redhat.com
fs/fscache/internal.h
fs/fscache/io.c
fs/fscache/stats.c
include/linux/fscache-cache.h
include/linux/fscache.h
include/trace/events/fscache.h