Merge branch 'work.dcache2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git] / fs / ceph / dir.c
index aab29f4..4ca0b8f 100644 (file)
@@ -1267,7 +1267,7 @@ __dentry_leases_walk(struct ceph_mds_client *mdsc,
                if (!spin_trylock(&dentry->d_lock))
                        continue;
 
-               if (dentry->d_lockref.count < 0) {
+               if (__lockref_is_dead(&dentry->d_lockref)) {
                        list_del_init(&di->lease_list);
                        goto next;
                }