]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/locks.c
helper for reading ->d_count
[karo-tx-linux.git] / fs / locks.c
index 04e2c1fdb157afeb0bc8fe278a74909cd239126b..c98e1a1431eaed1e94cb9f9b2ba5ff490d2119bb 100644 (file)
@@ -1454,7 +1454,7 @@ static int generic_add_lease(struct file *filp, long arg, struct file_lock **flp
        if ((arg == F_RDLCK) && (atomic_read(&inode->i_writecount) > 0))
                goto out;
        if ((arg == F_WRLCK)
-           && ((dentry->d_count > 1)
+           && ((d_count(dentry) > 1)
                || (atomic_read(&inode->i_count) > 1)))
                goto out;