aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2008-10-07 03:26:55 -0400
committerJeremy Kerr <jk@ozlabs.org>2008-10-09 20:06:15 -0400
commite2ed6e4daa6f16f088600d98568cb5730b5238a6 (patch)
treefe7b64b8f966fa8d09b7303149cc8a8f4d49622c
parent1afb7f809bfb8fad9eec9419f3dfd75cee746ebd (diff)
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: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--arch/powerpc/platforms/cell/spufs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c
index 690ca7b0dcf6..0d262b9f94a7 100644
--- a/arch/powerpc/platforms/cell/spufs/inode.c
+++ b/arch/powerpc/platforms/cell/spufs/inode.c
@@ -755,6 +755,7 @@ spufs_create_root(struct super_block *sb, void *data)
755 inode->i_op = &simple_dir_inode_operations; 755 inode->i_op = &simple_dir_inode_operations;
756 inode->i_fop = &simple_dir_operations; 756 inode->i_fop = &simple_dir_operations;
757 SPUFS_I(inode)->i_ctx = NULL; 757 SPUFS_I(inode)->i_ctx = NULL;
758 inc_nlink(inode);
758 759
759 ret = -EINVAL; 760 ret = -EINVAL;
760 if (!spufs_parse_options(sb, data, inode)) 761 if (!spufs_parse_options(sb, data, inode))