Skip to contentSkip to conversation

gfs2: ->readpages() fixes

PATCH In review OGAWA Hirofumi 2 participants 2 messages Oct 30, 2006 – Oct 31, 2006 GFS2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 gfs2: ->readpages() fixes

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

---

 fs/gfs2/ops_address.c |    7 -------
 1 file changed, 7 deletions(-)
fs/gfs2/ops_address.c renamed from fs/gfs2/ops_address.c~readpages-fixes-gfs2 +0 -7
diff -puN fs/gfs2/ops_address.c~readpages-fixes-gfs2 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;

_

Acked-by on v1 4/4
#1 lore raw

Hi,

Quoted 3 lines · OGAWA Hirofumi

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

Thanks for fixing this,

Steve.

Quoted 28 lines

---

 fs/gfs2/ops_address.c |    7 -------
 1 file changed, 7 deletions(-)

diff -puN fs/gfs2/ops_address.c~readpages-fixes-gfs2 fs/gfs2/ops_address.c

fs/gfs2/ops_address.c renamed from fs/gfs2/ops_address.c~readpages-fixes-gfs2 +0 -7
@@ -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;

_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/