]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/sunrpc/cache.h
Merge branches 'pm-core', 'pm-qos', 'pm-domains' and 'pm-opp'
[linux.git] / include / linux / sunrpc / cache.h
index 62a60eeacb0aeaf9907a5247d42706851fec3ffb..8a511c0985aafe0a18722c9dd701cf8326dcad59 100644 (file)
@@ -198,7 +198,7 @@ static inline struct cache_head  *cache_get(struct cache_head *h)
 
 static inline void cache_put(struct cache_head *h, struct cache_detail *cd)
 {
-       if (atomic_read(&h->ref.refcount) <= 2 &&
+       if (kref_read(&h->ref) <= 2 &&
            h->expiry_time < cd->nextcheck)
                cd->nextcheck = h->expiry_time;
        kref_put(&h->ref, cd->cache_put);