From: OGAWA Hirofumi Date: Fri, 3 Nov 2006 06:07:10 +0000 (-0800) Subject: [PATCH] gfs2: ->readpages() fixes X-Git-Tag: MMI-PSA29.97-13-9~45515^2~20^2~225 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7011774db8afca43be466f0f0428434a9edf053e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] gfs2: ->readpages() fixes This just ignore the remaining pages, and remove unneeded unlock_pages(). Signed-off-by: OGAWA Hirofumi Cc: Steven French Cc: Miklos Szeredi Acked-by: Steven Whitehouse Cc: Trond Myklebust Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c index 8d5963c7e123..015640b3f123 100644 --- a/fs/gfs2/ops_address.c +++ b/fs/gfs2/ops_address.c @@ -337,13 +337,6 @@ out: out_noerror: ret = 0; out_unlock: - /* unlock all pages, we can't do any I/O right now */ - for (page_idx = 0; page_idx < nr_pages; page_idx++) { - struct page *page = list_entry(pages->prev, struct page, lru); - list_del(&page->lru); - unlock_page(page); - page_cache_release(page); - } if (do_unlock) gfs2_holder_uninit(&gh); goto out;