summaryrefslogtreecommitdiff
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorNeil Brown <neilb@cse.unsw.edu.au>2003-08-04 23:20:16 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-08-04 23:20:16 -0700
commit2a7ae342e7e2a573f8bfc269bb488ff84be43b6d (patch)
tree13b8dec50f4313ac81b46bea0693af20d3a409ca /include/linux/sunrpc
parent67dec77024c313901d0686f0d57d80814003449b (diff)
[PATCH] Change atomic_inc to cache_get twice.
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h
index 9d4c3eff43b9..a9575c349cfe 100644
--- a/include/linux/sunrpc/cache.h
+++ b/include/linux/sunrpc/cache.h
@@ -173,7 +173,7 @@ RTN *FNAME ARGS \
if (set && !INPLACE && test_bit(CACHE_VALID, &tmp->MEMBER.flags) && !new) \
break; \
\
- atomic_inc(&tmp->MEMBER.refcnt); \
+ cache_get(&tmp->MEMBER); \
if (set) { \
if (!INPLACE && test_bit(CACHE_VALID, &tmp->MEMBER.flags))\
{ /* need to swap in new */ \
@@ -221,7 +221,7 @@ RTN *FNAME ARGS \
new = kmalloc(sizeof(*new), GFP_KERNEL); \
if (new) { \
cache_init(&new->MEMBER); \
- atomic_inc(&new->MEMBER.refcnt); \
+ cache_get(&new->MEMBER); \
INIT; \
tmp = new; \
goto retry; \