aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 9061157e39d6..7657be4352bf 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2035,10 +2035,7 @@ static int may_open(struct path *path, int acc_mode, int flag)
2035 if (flag & O_NOATIME && !inode_owner_or_capable(inode)) 2035 if (flag & O_NOATIME && !inode_owner_or_capable(inode))
2036 return -EPERM; 2036 return -EPERM;
2037 2037
2038 /* 2038 return 0;
2039 * Ensure there are no outstanding leases on the file.
2040 */
2041 return break_lease(inode, flag);
2042} 2039}
2043 2040
2044static int handle_truncate(struct file *filp) 2041static int handle_truncate(struct file *filp)