]> git.karo-electronics.de Git - linux-beck.git/commitdiff
nfsd: nfs4_stat_init cleanup
authorWang Chen <wangchen@cn.fujitsu.com>
Fri, 24 Apr 2009 07:41:57 +0000 (15:41 +0800)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 6 May 2009 20:22:41 +0000 (16:22 -0400)
Save some loop time.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4state.c

index a4bdf2589b41a2c8130eb0c9784c2cb12fbdbe8c..b276624be66ef5ec105c986d15885f3817d61f14 100644 (file)
@@ -4002,6 +4002,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]);
@@ -4024,8 +4025,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;
 }