lkml.org 
[lkml]   [2013]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 014/104] powerpc/spufs: Initialise inode->i_ino in spufs_new_inode()
    Date
    3.8-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Michael Ellerman <michael@ellerman.id.au>

    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>

    ---
    arch/powerpc/platforms/cell/spufs/inode.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/arch/powerpc/platforms/cell/spufs/inode.c
    +++ b/arch/powerpc/platforms/cell/spufs/inode.c
    @@ -99,6 +99,7 @@ spufs_new_inode(struct super_block *sb,
    if (!inode)
    goto out;

    + inode->i_ino = get_next_ino();
    inode->i_mode = mode;
    inode->i_uid = current_fsuid();
    inode->i_gid = current_fsgid();



    \
     
     \ /
      Last update: 2013-05-07 02:21    [W:4.188 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site