aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fscache/cookie.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fscache/cookie.c')
-rw-r--r--fs/fscache/cookie.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/fscache/cookie.c b/fs/fscache/cookie.c
index 990535071a8a..0666996adf80 100644
--- a/fs/fscache/cookie.c
+++ b/fs/fscache/cookie.c
@@ -452,6 +452,14 @@ void __fscache_relinquish_cookie(struct fscache_cookie *cookie, int retire)
452 452
453 _debug("RELEASE OBJ%x", object->debug_id); 453 _debug("RELEASE OBJ%x", object->debug_id);
454 454
455 if (atomic_read(&object->n_reads)) {
456 spin_unlock(&cookie->lock);
457 printk(KERN_ERR "FS-Cache:"
458 " Cookie '%s' still has %d outstanding reads\n",
459 cookie->def->name, atomic_read(&object->n_reads));
460 BUG();
461 }
462
455 /* detach each cache object from the object cookie */ 463 /* detach each cache object from the object cookie */
456 spin_lock(&object->lock); 464 spin_lock(&object->lock);
457 hlist_del_init(&object->cookie_link); 465 hlist_del_init(&object->cookie_link);