On 01/20/2012 08:10 PM, Miklos Szeredi wrote:
Untested patch below. Does that work for you? Thanks, Miklos diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 2066328..517a7f5 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -645,12 +645,7 @@ static int fuse_unlink(struct inode *dir, struct dentry *entry) if (!err) { struct inode *inode = entry->d_inode; - /* - * Set nlink to zero so the inode can be cleared, if the inode - * does have more links this will be discovered at the next - * lookup/getattr. - */ - clear_nlink(inode); + drop_nlink(inode); fuse_invalidate_attr(inode); fuse_invalidate_attr(dir); fuse_invalidate_entry_cache(entry);
That will work for me! Thanks, Avati -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html