diff options
Diffstat (limited to 'fs/locks.c')
-rw-r--r-- | fs/locks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c index 04e2c1fdb157..c98e1a1431ea 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -1454,7 +1454,7 @@ static int generic_add_lease(struct file *filp, long arg, struct file_lock **flp | |||
1454 | if ((arg == F_RDLCK) && (atomic_read(&inode->i_writecount) > 0)) | 1454 | if ((arg == F_RDLCK) && (atomic_read(&inode->i_writecount) > 0)) |
1455 | goto out; | 1455 | goto out; |
1456 | if ((arg == F_WRLCK) | 1456 | if ((arg == F_WRLCK) |
1457 | && ((dentry->d_count > 1) | 1457 | && ((d_count(dentry) > 1) |
1458 | || (atomic_read(&inode->i_count) > 1))) | 1458 | || (atomic_read(&inode->i_count) > 1))) |
1459 | goto out; | 1459 | goto out; |
1460 | 1460 | ||