Skip to content

Commit 516162b

Browse files
author
Al Viro
committed
ceph: don't open-code the check for dead lockref
Signed-off-by: Al Viro <[email protected]>
1 parent 570d7a9 commit 516162b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ceph/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ __dentry_leases_walk(struct ceph_mds_client *mdsc,
12551255
if (!spin_trylock(&dentry->d_lock))
12561256
continue;
12571257

1258-
if (dentry->d_lockref.count < 0) {
1258+
if (__lockref_is_dead(&dentry->d_lockref)) {
12591259
list_del_init(&di->lease_list);
12601260
goto next;
12611261
}

0 commit comments

Comments
 (0)