projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1afb7f8
)
powerpc/spufs: set nlink count for spufs root correctly
author
Jeremy Kerr
<jk@ozlabs.org>
Tue, 7 Oct 2008 07:26:55 +0000
(18:26 +1100)
committer
Jeremy Kerr
<jk@ozlabs.org>
Fri, 10 Oct 2008 00:06:15 +0000
(11:06 +1100)
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>
arch/powerpc/platforms/cell/spufs/inode.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/cell/spufs/inode.c
b/arch/powerpc/platforms/cell/spufs/inode.c
index 690ca7b0dcf68e5f96562efef97b092b4a5433c6..0d262b9f94a7cbbb17465ffd2adeed0f96778978 100644
(file)
--- 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)
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))