Skip to content

Commit

Permalink
powerpc/spufs: set nlink count for spufs root correctly
Browse files Browse the repository at this point in the history
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: Jeremy Kerr <jk@ozlabs.org>
  • Loading branch information
Jeremy Kerr committed Oct 10, 2008
1 parent 1afb7f8 commit e2ed6e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/platforms/cell/spufs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ spufs_create_root(struct super_block *sb, void *data)
inode->i_op = &simple_dir_inode_operations;
inode->i_fop = &simple_dir_operations;
SPUFS_I(inode)->i_ctx = NULL;
inc_nlink(inode);

ret = -EINVAL;
if (!spufs_parse_options(sb, data, inode))
Expand Down

0 comments on commit e2ed6e4

Please sign in to comment.