Commit 566dd606 authored by Trond Myklebust's avatar Trond Myklebust

NFS: Make directIO aware of compound pages...

 ...and avoid calling set_page_dirty on them
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 70b9ecbd
...@@ -122,9 +122,10 @@ nfs_free_user_pages(struct page **pages, int npages, int do_dirty) ...@@ -122,9 +122,10 @@ nfs_free_user_pages(struct page **pages, int npages, int do_dirty)
{ {
int i; int i;
for (i = 0; i < npages; i++) { for (i = 0; i < npages; i++) {
if (do_dirty) struct page *page = pages[i];
set_page_dirty_lock(pages[i]); if (do_dirty && !PageCompound(page))
page_cache_release(pages[i]); set_page_dirty_lock(page);
page_cache_release(page);
} }
kfree(pages); kfree(pages);
} }
......
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