cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH 4/4] gfs2: ->readpages() fixes
@ 2006-10-30 20:05 OGAWA Hirofumi
  2006-10-31  8:56 ` [Cluster-devel] " Steven Whitehouse
  0 siblings, 1 reply; 2+ messages in thread
From: OGAWA Hirofumi @ 2006-10-30 20:05 UTC (permalink / raw)
  To: cluster-devel.redhat.com

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

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
---

 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
--- linux-2.6/fs/gfs2/ops_address.c~readpages-fixes-gfs2	2006-10-31 04:26:20.000000000 +0900
+++ linux-2.6-hirofumi/fs/gfs2/ops_address.c	2006-10-31 04:26:20.000000000 +0900
@@ -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;
_



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Cluster-devel] Re: [PATCH 4/4] gfs2: ->readpages() fixes
  2006-10-30 20:05 [Cluster-devel] [PATCH 4/4] gfs2: ->readpages() fixes OGAWA Hirofumi
@ 2006-10-31  8:56 ` Steven Whitehouse
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Whitehouse @ 2006-10-31  8:56 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi,

On Tue, 2006-10-31 at 05:05 +0900, OGAWA Hirofumi wrote:
> This just ignore the remaining pages, and remove unneeded unlock_pages().
> 
> Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>

Thanks for fixing this,

Steve.


> ---
> 
>  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
> --- linux-2.6/fs/gfs2/ops_address.c~readpages-fixes-gfs2	2006-10-31 04:26:20.000000000 +0900
> +++ linux-2.6-hirofumi/fs/gfs2/ops_address.c	2006-10-31 04:26:20.000000000 +0900
> @@ -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 majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-31  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-30 20:05 [Cluster-devel] [PATCH 4/4] gfs2: ->readpages() fixes OGAWA Hirofumi
2006-10-31  8:56 ` [Cluster-devel] " Steven Whitehouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).