aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index dbb45a652ae3..fc858b1124c2 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2036,7 +2036,7 @@ static int may_open(struct path *path, int acc_mode, int flag)
2036 } 2036 }
2037 2037
2038 /* O_NOATIME can only be set by the owner or superuser */ 2038 /* O_NOATIME can only be set by the owner or superuser */
2039 if (flag & O_NOATIME && !is_owner_or_cap(inode)) 2039 if (flag & O_NOATIME && !inode_owner_or_capable(inode))
2040 return -EPERM; 2040 return -EPERM;
2041 2041
2042 /* 2042 /*