diff options
Diffstat (limited to 'fs/nfs/nfs3proc.c')
| -rw-r--r-- | fs/nfs/nfs3proc.c | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c index c55be7a7679..d0cc5ce0edf 100644 --- a/fs/nfs/nfs3proc.c +++ b/fs/nfs/nfs3proc.c @@ -328,7 +328,7 @@ nfs3_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,  		data->arg.create.verifier[1] = current->pid;  	} -	sattr->ia_mode &= ~current->fs->umask; +	sattr->ia_mode &= ~current_umask();  	for (;;) {  		status = nfs3_do_create(dir, dentry, data); @@ -528,7 +528,7 @@ nfs3_proc_mkdir(struct inode *dir, struct dentry *dentry, struct iattr *sattr)  	dprintk("NFS call  mkdir %s\n", dentry->d_name.name); -	sattr->ia_mode &= ~current->fs->umask; +	sattr->ia_mode &= ~current_umask();  	data = nfs3_alloc_createdata();  	if (data == NULL) @@ -639,7 +639,7 @@ nfs3_proc_mknod(struct inode *dir, struct dentry *dentry, struct iattr *sattr,  	dprintk("NFS call  mknod %s %u:%u\n", dentry->d_name.name,  			MAJOR(rdev), MINOR(rdev)); -	sattr->ia_mode &= ~current->fs->umask; +	sattr->ia_mode &= ~current_umask();  	data = nfs3_alloc_createdata();  	if (data == NULL) @@ -834,4 +834,5 @@ const struct nfs_rpc_ops nfs_v3_clientops = {  	.commit_done	= nfs3_commit_done,  	.lock		= nfs3_proc_lock,  	.clear_acl_cache = nfs3_forget_cached_acls, +	.close_context	= nfs_close_context,  };  |