commit | 516162b92d1b72995ce796b98bb8c7992d9f5b5f | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Thu Jun 27 22:25:23 2019 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Thu Jul 04 18:58:23 2019 -0400 |
tree | dce6d5cb4a83c21eae658ad2c8bbcd61448b2b6c | |
parent | 570d7a98e7d6d5d8706d94ffd2d40adeaa318332 [diff] [blame] |
ceph: don't open-code the check for dead lockref Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 0637149..206d3b5 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c
@@ -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; }