From: Trond Myklebust Date: Tue, 3 Jan 2006 08:55:35 +0000 (+0100) Subject: NFS: Make directIO aware of compound pages... X-Git-Tag: MMI-PSA29.97-13-9~53664^2~4^2~25 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=566dd6064e89b15ff2dec666a421bebf0f98f26c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git NFS: Make directIO aware of compound pages... ...and avoid calling set_page_dirty on them Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c index fd7ac5e841c1..10ae377e68ff 100644 --- a/fs/nfs/direct.c +++ b/fs/nfs/direct.c @@ -122,9 +122,10 @@ nfs_free_user_pages(struct page **pages, int npages, int do_dirty) { int i; for (i = 0; i < npages; i++) { - if (do_dirty) - set_page_dirty_lock(pages[i]); - page_cache_release(pages[i]); + struct page *page = pages[i]; + if (do_dirty && !PageCompound(page)) + set_page_dirty_lock(page); + page_cache_release(page); } kfree(pages); }