fuse: set i_nlink to sane value after mount
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 17 Oct 2007 06:31:02 +0000 (23:31 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:43:04 +0000 (08:43 -0700)
commit074406fa6309ab8b0aca15496b16b3653e58c03d
tree5906e18a17a03d71ddbacecdaaa949b2cc3b9169
parentb10099792b6276c31cee4c021e0a5d3f9a9e33ed
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 <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/inode.c