diff options
author | David Howells <dhowells@redhat.com> | 2017-01-05 10:38:35 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-01-06 16:54:41 +0000 |
commit | 91b467e0a3f5fa861265eda94640b7d4c0290551 (patch) | |
tree | f5047799b3a947492e0321459c9fffb30a7c2ae7 /fs/afs/volume.c | |
parent | 196ee9cd2d04728d0ec0038a2856b86142615b11 (diff) | |
download | lwn-91b467e0a3f5fa861265eda94640b7d4c0290551.tar.gz lwn-91b467e0a3f5fa861265eda94640b7d4c0290551.zip |
afs: Make afs_readpages() fetch data in bulk
Make afs_readpages() use afs_vnode_fetch_data()'s new ability to take a
list of pages and do a bulk fetch.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/volume.c')
-rw-r--r-- | fs/afs/volume.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/afs/volume.c b/fs/afs/volume.c index d142a2449e65..546f9d01710b 100644 --- a/fs/afs/volume.c +++ b/fs/afs/volume.c @@ -106,6 +106,7 @@ struct afs_volume *afs_volume_lookup(struct afs_mount_params *params) volume->cell = params->cell; volume->vid = vlocation->vldb.vid[params->type]; + volume->bdi.ra_pages = VM_MAX_READAHEAD*1024/PAGE_SIZE; ret = bdi_setup_and_register(&volume->bdi, "afs"); if (ret) goto error_bdi; |