[PATCH] gfs2: ->readpages() fixes

This just ignore the remaining pages, and remove unneeded unlock_pages().

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Steven French <sfrench@us.ibm.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by OGAWA Hirofumi and committed by Linus Torvalds 7011774d 2e990021

-7
-7
fs/gfs2/ops_address.c
··· 337 337 out_noerror: 338 338 ret = 0; 339 339 out_unlock: 340 - /* unlock all pages, we can't do any I/O right now */ 341 - for (page_idx = 0; page_idx < nr_pages; page_idx++) { 342 - struct page *page = list_entry(pages->prev, struct page, lru); 343 - list_del(&page->lru); 344 - unlock_page(page); 345 - page_cache_release(page); 346 - } 347 340 if (do_unlock) 348 341 gfs2_holder_uninit(&gh); 349 342 goto out;