diff options
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 8dde84b988d9..bbee587dd597 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -1509,7 +1509,7 @@ nfs4_atomic_open(struct inode *dir, struct dentry *dentry, struct nameidata *nd) | |||
1509 | attr.ia_mode = nd->intent.open.create_mode; | 1509 | attr.ia_mode = nd->intent.open.create_mode; |
1510 | attr.ia_valid = ATTR_MODE; | 1510 | attr.ia_valid = ATTR_MODE; |
1511 | if (!IS_POSIXACL(dir)) | 1511 | if (!IS_POSIXACL(dir)) |
1512 | attr.ia_mode &= ~current->fs->umask; | 1512 | attr.ia_mode &= ~current_umask(); |
1513 | } else { | 1513 | } else { |
1514 | attr.ia_valid = 0; | 1514 | attr.ia_valid = 0; |
1515 | BUG_ON(nd->intent.open.flags & O_CREAT); | 1515 | BUG_ON(nd->intent.open.flags & O_CREAT); |