Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 570d7a98
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}