public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nfsd: nfs4_stat_init cleanup
@ 2009-05-06  9:28 Wang Chen
  2009-05-06 20:23 ` J. Bruce Fields
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Chen @ 2009-05-06  9:28 UTC (permalink / raw)
  To: Benny Halevy, J. Bruce Fields; +Cc: linux-nfs

>From 6c43788cbe09b84df712df1546d6c462656cc801 Mon Sep 17 00:00:00 2001
From: Wang Chen <wangchen@cn.fujitsu.com>
Date: Fri, 24 Apr 2009 15:41:57 +0800
Subject: [PATCH] nfsd: nfs4_stat_init cleanup

Save some loop time.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
---
 fs/nfsd/nfs4state.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 86b9afd..2b4f70a 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -3988,6 +3988,7 @@ nfs4_state_init(void)
 		INIT_LIST_HEAD(&conf_str_hashtbl[i]);
 		INIT_LIST_HEAD(&unconf_str_hashtbl[i]);
 		INIT_LIST_HEAD(&unconf_id_hashtbl[i]);
+		INIT_LIST_HEAD(&reclaim_str_hashtbl[i]);
 	}
 	for (i = 0; i < SESSION_HASH_SIZE; i++)
 		INIT_LIST_HEAD(&sessionid_hashtbl[i]);
@@ -4010,8 +4011,6 @@ nfs4_state_init(void)
 	INIT_LIST_HEAD(&close_lru);
 	INIT_LIST_HEAD(&client_lru);
 	INIT_LIST_HEAD(&del_recall_lru);
-	for (i = 0; i < CLIENT_HASH_SIZE; i++)
-		INIT_LIST_HEAD(&reclaim_str_hashtbl[i]);
 	reclaim_str_hashtbl_size = 0;
 	return 0;
 }
-- 
1.6.0.6



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

* Re: [PATCH] nfsd: nfs4_stat_init cleanup
  2009-05-06  9:28 [PATCH] nfsd: nfs4_stat_init cleanup Wang Chen
@ 2009-05-06 20:23 ` J. Bruce Fields
  0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2009-05-06 20:23 UTC (permalink / raw)
  To: Wang Chen; +Cc: Benny Halevy, linux-nfs

Yep, thanks--applied.

--b.

On Wed, May 06, 2009 at 05:28:23PM +0800, Wang Chen wrote:
> >From 6c43788cbe09b84df712df1546d6c462656cc801 Mon Sep 17 00:00:00 2001
> From: Wang Chen <wangchen@cn.fujitsu.com>
> Date: Fri, 24 Apr 2009 15:41:57 +0800
> Subject: [PATCH] nfsd: nfs4_stat_init cleanup
> 
> Save some loop time.
> 
> Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
> ---
>  fs/nfsd/nfs4state.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
> index 86b9afd..2b4f70a 100644
> --- a/fs/nfsd/nfs4state.c
> +++ b/fs/nfsd/nfs4state.c
> @@ -3988,6 +3988,7 @@ nfs4_state_init(void)
>  		INIT_LIST_HEAD(&conf_str_hashtbl[i]);
>  		INIT_LIST_HEAD(&unconf_str_hashtbl[i]);
>  		INIT_LIST_HEAD(&unconf_id_hashtbl[i]);
> +		INIT_LIST_HEAD(&reclaim_str_hashtbl[i]);
>  	}
>  	for (i = 0; i < SESSION_HASH_SIZE; i++)
>  		INIT_LIST_HEAD(&sessionid_hashtbl[i]);
> @@ -4010,8 +4011,6 @@ nfs4_state_init(void)
>  	INIT_LIST_HEAD(&close_lru);
>  	INIT_LIST_HEAD(&client_lru);
>  	INIT_LIST_HEAD(&del_recall_lru);
> -	for (i = 0; i < CLIENT_HASH_SIZE; i++)
> -		INIT_LIST_HEAD(&reclaim_str_hashtbl[i]);
>  	reclaim_str_hashtbl_size = 0;
>  	return 0;
>  }
> -- 
> 1.6.0.6
> 
> 

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

end of thread, other threads:[~2009-05-06 20:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-06  9:28 [PATCH] nfsd: nfs4_stat_init cleanup Wang Chen
2009-05-06 20:23 ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox