Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352903
b: refs/heads/master
c: dfca7ce
h: refs/heads/master
i:
  352901: 43bb98d
  352899: 9acbcf6
  352895: e61a585
v: v3
  • Loading branch information
Miklos Szeredi committed Feb 4, 2013
1 parent 1493ec2 commit b8bb619
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 6a4e922c3db06f7da27e072729e047185c2fba66
refs/heads/master: dfca7cebc2679f3d129f8e680a8f199a7ad16e38
9 changes: 8 additions & 1 deletion trunk/fs/fuse/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,14 @@ static int fuse_unlink(struct inode *dir, struct dentry *entry)

spin_lock(&fc->lock);
fi->attr_version = ++fc->attr_version;
drop_nlink(inode);
/*
* If i_nlink == 0 then unlink doesn't make sense, yet this can
* happen if userspace filesystem is careless. It would be
* difficult to enforce correct nlink usage so just ignore this
* condition here
*/
if (inode->i_nlink > 0)
drop_nlink(inode);
spin_unlock(&fc->lock);
fuse_invalidate_attr(inode);
fuse_invalidate_attr(dir);
Expand Down

0 comments on commit b8bb619

Please sign in to comment.