mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b10099792b
commit
074406fa63
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue