Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189479
b: refs/heads/master
c: d994f40
h: refs/heads/master
i:
  189477: 5b125bd
  189475: 8618268
  189471: ab240d5
v: v3
  • Loading branch information
Aneesh Kumar K.V authored and Eric Van Hensbergen committed Apr 5, 2010
1 parent a78ff85 commit 566f3bb
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: 5b0fa207d1a6f27c9a2f2d707147dce01af21db7
refs/heads/master: d994f4058d9f9be7e44529b55fc6be6552901ead
6 changes: 5 additions & 1 deletion trunk/fs/9p/vfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid,

static int v9fs_remove(struct inode *dir, struct dentry *file, int rmdir)
{
int retval;
struct inode *file_inode;
struct v9fs_session_info *v9ses;
struct p9_fid *v9fid;
Expand All @@ -444,7 +445,10 @@ static int v9fs_remove(struct inode *dir, struct dentry *file, int rmdir)
if (IS_ERR(v9fid))
return PTR_ERR(v9fid);

return p9_client_remove(v9fid);
retval = p9_client_remove(v9fid);
if (!retval)
drop_nlink(file_inode);
return retval;
}

static int
Expand Down

0 comments on commit 566f3bb

Please sign in to comment.