summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-06-28 04:25:23 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2019-07-05 00:58:23 +0200
commit516162b92d1b72995ce796b98bb8c7992d9f5b5f (patch)
treedce6d5cb4a83c21eae658ad2c8bbcd61448b2b6c /fs/ceph
parentvfs: move_mount: reject moving kernel internal mounts (diff)
downloadlinux-516162b92d1b72995ce796b98bb8c7992d9f5b5f.tar.xz
linux-516162b92d1b72995ce796b98bb8c7992d9f5b5f.zip
ceph: don't open-code the check for dead lockref
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 0637149fb9f9..206d3b56e8f1 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;
}