]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
fscache: Provide a function to let the netfs update its coherency data
authorDavid Howells <dhowells@redhat.com>
Wed, 20 Oct 2021 22:10:46 +0000 (23:10 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 26 Nov 2021 14:28:53 +0000 (14:28 +0000)
commit7c7fa67690ffd5e3e1a0ceb94ea6116dd1a6d60f
tree39fddbda743f48f7febfee6b80901968e8741037
parent5f66779cc7277ab4fa6fe60f3d94085a5cb72e18
fscache: Provide a function to let the netfs update its coherency data

Provide a function to let the netfs update its coherency data:

void fscache_update_cookie(struct fscache_cookie *cookie,
   const void *aux_data,
   const loff_t *object_size);

This will update the auxiliary data and/or the size of the object attached
to a cookie if either pointer is not-NULL and flag that the disk needs to
be updated.

Note that fscache_unuse_cookie() also allows this to be done.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cachefs@redhat.com
include/linux/fscache.h