Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230631
b: refs/heads/master
c: 8a0eebf
h: refs/heads/master
i:
  230629: b579f1c
  230627: 3510408
  230623: 90a2d57
v: v3
  • Loading branch information
Trond Myklebust authored and Linus Torvalds committed Jan 13, 2011
1 parent fbf058e commit b45c7e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 581548db3b3c0f6e25b500329eb02e3c72e7acbe
refs/heads/master: 8a0eebf66e3b1deae036553ba641a9c2bdbae678
6 changes: 5 additions & 1 deletion trunk/fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1579,14 +1579,18 @@ static int nfs_create(struct inode *dir, struct dentry *dentry, int mode,
{
struct iattr attr;
int error;
int open_flags = 0;

dfprintk(VFS, "NFS: create(%s/%ld), %s\n",
dir->i_sb->s_id, dir->i_ino, dentry->d_name.name);

attr.ia_mode = mode;
attr.ia_valid = ATTR_MODE;

error = NFS_PROTO(dir)->create(dir, dentry, &attr, 0, NULL);
if ((nd->flags & LOOKUP_CREATE) != 0)
open_flags = nd->intent.open.flags;

error = NFS_PROTO(dir)->create(dir, dentry, &attr, open_flags, NULL);
if (error != 0)
goto out_err;
return 0;
Expand Down

0 comments on commit b45c7e0

Please sign in to comment.