From: Miklos Szeredi Date: Wed, 17 Oct 2007 06:31:02 +0000 (-0700) Subject: fuse: set i_nlink to sane value after mount X-Git-Tag: upstream/snapshot3+hdmi~29849 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=074406fa6309ab8b0aca15496b16b3653e58c03d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git fuse: set i_nlink to sane value after mount Aufs seems to depend on a positive i_nlink value. So fill in a dummy but sane value for the root inode at mount time. The inode attributes are refreshed with the correct values at the first opportunity. Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index e8d360a..951e760 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -472,6 +472,7 @@ static struct inode *get_root_inode(struct super_block *sb, unsigned mode) attr.mode = mode; attr.ino = FUSE_ROOT_ID; + attr.nlink = 1; return fuse_iget(sb, 1, 0, &attr); }