diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2013-04-23 15:13:14 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-07 19:57:21 -0700 |
commit | ea70316c0e035731348f6be194e6332388944029 (patch) | |
tree | f48340b9b2c57c12941b176afaa79d39807f01ab /arch | |
parent | 74f31cf3c186bc0189ad560fadfc03dd9aa2f806 (diff) | |
download | linux-stable-ea70316c0e035731348f6be194e6332388944029.tar.gz linux-stable-ea70316c0e035731348f6be194e6332388944029.tar.bz2 linux-stable-ea70316c0e035731348f6be194e6332388944029.zip |
powerpc/spufs: Initialise inode->i_ino in spufs_new_inode()
commit 6747e83235caecd30b186d1282e4eba7679f81b7 upstream.
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.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 1 |
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 856e9c398068..6786f9d581b4 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c @@ -100,6 +100,7 @@ spufs_new_inode(struct super_block *sb, int 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(); |