fscache: Pass object size in rather than calling back for it
commitee1235a9a06813429c201bf186397a6feeea07bf
authorDavid Howells <dhowells@redhat.com>
Wed, 4 Apr 2018 12:41:28 +0000 (4 13:41 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 6 Apr 2018 13:05:14 +0000 (6 14:05 +0100)
tree444566605bfafce0b155a76e061a73c264329424
parent402cb8dda949d9b8c0df20ad2527d139faad7ca1
fscache: Pass object size in rather than calling back for it

Pass the object size in to fscache_acquire_cookie() and
fscache_write_page() rather than the netfs providing a callback by which it
can be received.  This makes it easier to update the size of the object
when a new page is written that extends the object.

The current object size is also passed by fscache to the check_aux
function, obviating the need to store it in the aux data.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Anna Schumaker <anna.schumaker@netapp.com>
Tested-by: Steve Dickson <steved@redhat.com>
21 files changed:
Documentation/filesystems/caching/netfs-api.txt
fs/9p/cache.c
fs/afs/cache.c
fs/afs/cell.c
fs/afs/file.c
fs/afs/inode.c
fs/afs/volume.c
fs/cachefiles/interface.c
fs/cachefiles/xattr.c
fs/ceph/cache.c
fs/cifs/cache.c
fs/cifs/fscache.c
fs/fscache/cookie.c
fs/fscache/fsdef.c
fs/fscache/object.c
fs/fscache/page.c
fs/nfs/fscache-index.c
fs/nfs/fscache.c
fs/nfs/fscache.h
include/linux/fscache-cache.h
include/linux/fscache.h