Skip to content

Commit

Permalink
[PATCH] gfs2: ->readpages() fixes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
OGAWA Hirofumi authored and Linus Torvalds committed Nov 3, 2006
1 parent 2e99002 commit 7011774
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions fs/gfs2/ops_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,13 +337,6 @@ static int gfs2_readpages(struct file *file, struct address_space *mapping,
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;
Expand Down

0 comments on commit 7011774

Please sign in to comment.