]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Fix typo in nfs_readpages.
authorTrond Myklebust <trond.myklebust@fys.uio.no>
Wed, 6 Nov 2002 12:55:28 +0000 (04:55 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Wed, 6 Nov 2002 12:55:28 +0000 (04:55 -0800)
Make sure we drain the entire list of pages that failed to get added
to the mapping.

fs/nfs/read.c

index 4a796b33d6fd25259ba583de3272f2fa422c5820..01d2447b737c85ca207f78a1457bb082f99f46bb 100644 (file)
@@ -387,7 +387,7 @@ nfs_readpages(struct file *filp, struct address_space *mapping,
                               is_sync ? readpage_sync_filler :
                                         readpage_async_filler,
                               &desc);
-       if (!list_empty(pages)) {
+       while (!list_empty(pages)) {
                struct page *page = list_entry(pages->prev, struct page, list);
                list_del(&page->list);
                page_cache_release(page);