diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-04-02 18:48:28 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-05-01 01:17:05 -0400 |
commit | 8b09bee3083897e375bd0bf9d60f48daedfab3e0 (patch) | |
tree | 5122ee611fc46799660db63442107e5677234266 /fs/nfs/pagelist.c | |
parent | bcb71bba7e64f0442d0ca339d7d3117a7060589f (diff) |
NFS: Cleanup for nfs_readpages()
Do the coalescing of read requests into block sized requests at start of
I/O as we scan through the pages instead of going through a second pass.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/pagelist.c')
-rw-r--r-- | fs/nfs/pagelist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index 528128545d66..094537ddd344 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c | |||
@@ -342,8 +342,8 @@ static void nfs_pageio_doio(struct nfs_pageio_descriptor *desc) | |||
342 | * Returns true if the request 'req' was successfully coalesced into the | 342 | * Returns true if the request 'req' was successfully coalesced into the |
343 | * existing list of pages 'desc'. | 343 | * existing list of pages 'desc'. |
344 | */ | 344 | */ |
345 | static int nfs_pageio_add_request(struct nfs_pageio_descriptor *desc, | 345 | int nfs_pageio_add_request(struct nfs_pageio_descriptor *desc, |
346 | struct nfs_page *req) | 346 | struct nfs_page *req) |
347 | { | 347 | { |
348 | while (!nfs_pageio_do_add_request(desc, req)) { | 348 | while (!nfs_pageio_do_add_request(desc, req)) { |
349 | nfs_pageio_doio(desc); | 349 | nfs_pageio_doio(desc); |