Commit 516162b9 authored by Al Viro's avatar Al Viro

ceph: don't open-code the check for dead lockref

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 570d7a98
......@@ -1255,7 +1255,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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment