Commit dfca7ceb authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

fuse: don't WARN when nlink is zero

drop_nlink() warns if nlink is already zero.  This is triggerable by a buggy
userspace filesystem.  The cure, I think, is worse than the disease so disable
the warning.
Reported-by: default avatarTero Roponen <>
Signed-off-by: default avatarMiklos Szeredi <>
parent 6a4e922c
......@@ -705,7 +705,14 @@ static int fuse_unlink(struct inode *dir, struct dentry *entry)
fi->attr_version = ++fc->attr_version;
* 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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment