Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218959
b: refs/heads/master
c: 877cb3d
h: refs/heads/master
i:
  218957: 07d2b5b
  218955: 0017353
  218951: 488634b
  218943: 43c3486
v: v3
  • Loading branch information
Aneesh Kumar K.V authored and Eric Van Hensbergen committed Oct 28, 2010
1 parent 954944d commit 674c160
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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: 9856af8b535aaf51d95dab2087e79508f551fbb8
refs/heads/master: 877cb3d4dd73838adcc6b79f2a3d29b155e7ebbe
11 changes: 2 additions & 9 deletions trunk/fs/9p/vfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,13 +564,6 @@ static int v9fs_remove(struct inode *dir, struct dentry *file, int rmdir)
return retval;
}

static int
v9fs_open_created(struct inode *inode, struct file *file)
{
return 0;
}


/**
* v9fs_create - Create a file
* @v9ses: session information
Expand Down Expand Up @@ -775,7 +768,7 @@ v9fs_vfs_create_dotl(struct inode *dir, struct dentry *dentry, int omode,

/* if we are opening a file, assign the open fid to the file */
if (nd && nd->flags & LOOKUP_OPEN) {
filp = lookup_instantiate_filp(nd, dentry, v9fs_open_created);
filp = lookup_instantiate_filp(nd, dentry, generic_file_open);
if (IS_ERR(filp)) {
p9_client_clunk(ofid);
return PTR_ERR(filp);
Expand Down Expand Up @@ -834,7 +827,7 @@ v9fs_vfs_create(struct inode *dir, struct dentry *dentry, int mode,

/* if we are opening a file, assign the open fid to the file */
if (nd && nd->flags & LOOKUP_OPEN) {
filp = lookup_instantiate_filp(nd, dentry, v9fs_open_created);
filp = lookup_instantiate_filp(nd, dentry, generic_file_open);
if (IS_ERR(filp)) {
err = PTR_ERR(filp);
goto error;
Expand Down

0 comments on commit 674c160

Please sign in to comment.