Commit e2ed6e4d authored by Jeremy Kerr's avatar Jeremy Kerr

powerpc/spufs: set nlink count for spufs root correctly

Currently, an empty spufs root inode has nlink count of 1. However,
the directory has two links; / -> spu and /spu/ -> .

This change increments the link count of the root inode in spufs.
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
parent 1afb7f80
...@@ -755,6 +755,7 @@ spufs_create_root(struct super_block *sb, void *data) ...@@ -755,6 +755,7 @@ spufs_create_root(struct super_block *sb, void *data)
inode->i_op = &simple_dir_inode_operations; inode->i_op = &simple_dir_inode_operations;
inode->i_fop = &simple_dir_operations; inode->i_fop = &simple_dir_operations;
SPUFS_I(inode)->i_ctx = NULL; SPUFS_I(inode)->i_ctx = NULL;
inc_nlink(inode);
ret = -EINVAL; ret = -EINVAL;
if (!spufs_parse_options(sb, data, inode)) if (!spufs_parse_options(sb, data, inode))
......
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