[PATCH] nfsd: make cache_init initialize reference count to 1
commit0be5edbc2e0626ec327a29ee9555fd93f6332dc4
authorNeil Brown <neilb@cse.unsw.edu.au>
Mon, 23 Aug 2004 06:00:47 +0000 (22 23:00 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 06:00:47 +0000 (22 23:00 -0700)
tree3f7c9daee7e7a3078ec8b233880aeaec429f3a0f
parent4feb71cc86bfabfd357787191bc3f77ab33dd088
[PATCH] nfsd: make cache_init initialize reference count to 1

Presumably anyone creating a new cache entry is going to want a reference on
that cache; and indeed every caller of cache_init increments the reference
count immediately afterwards.  So may as well make cache_init set an initial
reference count of 1.

Also, note that cache_init initializes the flags; callers don't need to.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/sunrpc/cache.h
net/sunrpc/auth_gss/svcauth_gss.c
net/sunrpc/cache.c
net/sunrpc/svcauth_unix.c