diff options
author | David Howells <dhowells@redhat.com> | 2018-04-04 08:41:28 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-04-06 09:05:14 -0400 |
commit | ee1235a9a06813429c201bf186397a6feeea07bf (patch) | |
tree | 444566605bfafce0b155a76e061a73c264329424 /fs/afs/volume.c | |
parent | 402cb8dda949d9b8c0df20ad2527d139faad7ca1 (diff) |
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>
Diffstat (limited to 'fs/afs/volume.c')
-rw-r--r-- | fs/afs/volume.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/afs/volume.c b/fs/afs/volume.c index 345cb2d675d2..3037bd01f617 100644 --- a/fs/afs/volume.c +++ b/fs/afs/volume.c | |||
@@ -227,7 +227,7 @@ void afs_activate_volume(struct afs_volume *volume) | |||
227 | &afs_volume_cache_index_def, | 227 | &afs_volume_cache_index_def, |
228 | &volume->vid, sizeof(volume->vid), | 228 | &volume->vid, sizeof(volume->vid), |
229 | NULL, 0, | 229 | NULL, 0, |
230 | volume, true); | 230 | volume, 0, true); |
231 | #endif | 231 | #endif |
232 | 232 | ||
233 | write_lock(&volume->cell->proc_lock); | 233 | write_lock(&volume->cell->proc_lock); |