powerpc/spufs: Initialise inode->i_ino in spufs_new_inode()
Subsystems (3)
PATCH 1/1 powerpc/spufs: Initialise inode->i_ino in spufs_new_inode()
In commit 85fe402 (fs: do not assign default i_ino in new_inode), the initialisation of i_ino was removed from new_inode() and pushed down into the callers. However spufs_new_inode() was not updated.
This exhibits as no files appearing in /spu, because all our dirents have a zero inode, which readdir() seems to dislike.
--- arch/powerpc/platforms/cell/spufs/inode.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/platforms/cell/spufs/inode.c +1 -0
@@ -99,6 +99,7 @@ spufs_new_inode(struct super_block *sb, umode_t mode)if (!inode) goto out; + inode->i_ino =get_next_ino (); inode->i_mode = mode; inode->i_uid =current_fsuid (); inode->i_gid =current_fsgid ();
Signature · 1 line
1.7.10.4
Quoted 9 lines · Michael Ellerman
In commit 85fe402 (fs: do not assign default
i_inoinnew_inode), the initialisation ofi_inowas removed fromnew_inode()and pushed down into the callers. Howeverspufs_new_inode()was not updated.This exhibits as no files appearing in /spu, because all our dirents have a zero inode, which
readdir()seems to dislike.Signed-off-by Michael Ellerman <[email protected]>
Christoph/Al, can I have an Ack for this before I shoot it to Linus ?
Thanks !
Cheers,
Ben.
---
Review
Quoted 4 lines
arch/powerpc/platforms/cell/spufs/inode.c | 1 + 1 file changed, 1 insertion(+)(quoted diff) +0
-0
b/arch/powerpc/platforms/cell/spufs/inode.c
arch/powerpc/platforms/cell/spufs/inode.c spufs_new_inode(struct super_block *sb, umode_t
Quoted 4 lines
index 3f3bb4c..35f77a4 100644
arch/powerpc/platforms/cell/spufs/inode.c +0
-0@@ -99,6 +99,7 @@ spufs_new_inode(struct super_block *sb, umode_t
mode)
Quoted 8 lines
arch/powerpc/platforms/cell/spufs/inode.c +1
-0if (!inode) goto out; + inode->i_ino =get_next_ino (); inode->i_mode = mode; inode->i_uid =current_fsuid (); inode->i_gid =current_fsgid ();
Looks good.