diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/dir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index a6b791e029f9..b6d97dfa9cb6 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -2477,6 +2477,9 @@ int nfs_permission(struct inode *inode, int mask) case S_IFLNK: goto out; case S_IFREG: + if ((mask & MAY_OPEN) && + nfs_server_capable(inode, NFS_CAP_ATOMIC_OPEN)) + return 0; break; case S_IFDIR: /* |