aboutsummaryrefslogtreecommitdiffstats
path: root/fs/locks.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/locks.c')
-rw-r--r--fs/locks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c
index feaac634d0da..0f3998291f78 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -1383,7 +1383,7 @@ int generic_setlease(struct file *filp, long arg, struct file_lock **flp)
1383 if ((arg == F_RDLCK) && (atomic_read(&inode->i_writecount) > 0)) 1383 if ((arg == F_RDLCK) && (atomic_read(&inode->i_writecount) > 0))
1384 goto out; 1384 goto out;
1385 if ((arg == F_WRLCK) 1385 if ((arg == F_WRLCK)
1386 && ((atomic_read(&dentry->d_count) > 1) 1386 && ((dentry->d_count > 1)
1387 || (atomic_read(&inode->i_count) > 1))) 1387 || (atomic_read(&inode->i_count) > 1)))
1388 goto out; 1388 goto out;
1389 } 1389 }