Re: [PATCH] nfsd: nfs4_stat_init cleanup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
> 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@xxxxxxxxxxxxxx>
> ---
>  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
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux