summaryrefslogtreecommitdiffstats
path: root/fs/fuse/inode.c
diff options
context:
space:
mode:
authorMiklos Szeredi2007-10-17 08:31:02 +0200
committerLinus Torvalds2007-10-17 17:43:04 +0200
commit074406fa6309ab8b0aca15496b16b3653e58c03d (patch)
tree5906e18a17a03d71ddbacecdaaa949b2cc3b9169 /fs/fuse/inode.c
parentfuse: fix page invalidation (diff)
downloadkernel-qcow2-linux-074406fa6309ab8b0aca15496b16b3653e58c03d.tar.gz
kernel-qcow2-linux-074406fa6309ab8b0aca15496b16b3653e58c03d.tar.xz
kernel-qcow2-linux-074406fa6309ab8b0aca15496b16b3653e58c03d.zip
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>
Diffstat (limited to 'fs/fuse/inode.c')
-rw-r--r--fs/fuse/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index e8d360add50a..951e760d5c5a 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);
}