]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/gfs2/ops_address.c
[PATCH] gfs2: ->readpages() fixes
[linux-2.6-omap-h63xx.git] / fs / gfs2 / ops_address.c
index 8d5963c7e123bbcd1e85b59c1eee629634750ca6..015640b3f123fcde76a28195c1859577c38ef9b7 100644 (file)
@@ -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;