]> git.baikalelectronics.ru Git - kernel.git/commit
fscache: Pass object size in rather than calling back for it
authorDavid Howells <dhowells@redhat.com>
Wed, 4 Apr 2018 12:41:28 +0000 (13:41 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 6 Apr 2018 13:05:14 +0000 (14:05 +0100)
commit47c18e5887641c1e0a9092d6956b53c10c773bd1
tree444566605bfafce0b155a76e061a73c264329424
parentc0c07a2c9582a701ce2b4da0f6904e31c85ec6f0
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