Commit dffa30c7 authored by Trond Myklebust's avatar Trond Myklebust Committed by Linus Torvalds

[PATCH] Fix typo in nfs_readpages.

Make sure we drain the entire list of pages that failed to get added
to the mapping.
parent 9096518f
...@@ -387,7 +387,7 @@ nfs_readpages(struct file *filp, struct address_space *mapping, ...@@ -387,7 +387,7 @@ nfs_readpages(struct file *filp, struct address_space *mapping,
is_sync ? readpage_sync_filler : is_sync ? readpage_sync_filler :
readpage_async_filler, readpage_async_filler,
&desc); &desc);
if (!list_empty(pages)) { while (!list_empty(pages)) {
struct page *page = list_entry(pages->prev, struct page, list); struct page *page = list_entry(pages->prev, struct page, list);
list_del(&page->list); list_del(&page->list);
page_cache_release(page); page_cache_release(page);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment