s390/hypfs: Add missing get_next_ino()
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Fri, 29 Jun 2012 12:48:09 +0000 (14:48 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 16 Jul 2012 08:53:21 +0000 (10:53 +0200)
With git commit 85fe4025c616a7c0ed07bc2fc8c5371b07f3888c ("fs: do not
assign default i_ino in new_inode") the get_next_ino() function was
moved from the new_inode() to the different file system implementations.
Unfortunately hypfs has been overlooked by the author. With this
patch the get_next_ino() is added also to hypfs.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/hypfs/inode.c

index 73dae8b9b77a8c9f58c3c9e1f81f206b74dac04c..440382b403c3d6a0d1c99cb4995d0a2784cda945 100644 (file)
@@ -103,6 +103,7 @@ static struct inode *hypfs_make_inode(struct super_block *sb, umode_t mode)
 
        if (ret) {
                struct hypfs_sb_info *hypfs_info = sb->s_fs_info;
+               ret->i_ino = get_next_ino();
                ret->i_mode = mode;
                ret->i_uid = hypfs_info->uid;
                ret->i_gid = hypfs_info->gid;