]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[GFS2] Inode number is constant
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 8 Nov 2006 18:52:05 +0000 (13:52 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 30 Nov 2006 15:34:48 +0000 (10:34 -0500)
Since the inode number is constant, we don't need to keep updating
it everytime we refresh the other inode fields.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/inode.c

index 56b39be76925c061b1b519786104248548b45f7a..19b2736cd52f70e38e643c6651193dbe4c48ebc2 100644 (file)
@@ -50,7 +50,6 @@ void gfs2_inode_attr_in(struct gfs2_inode *ip)
        struct inode *inode = &ip->i_inode;
        struct gfs2_dinode_host *di = &ip->i_di;
 
-       inode->i_ino = ip->i_num.no_addr;
        i_size_write(inode, di->di_size);
        inode->i_blocks = di->di_blocks <<
                (GFS2_SB(inode)->sd_sb.sb_bsize_shift - GFS2_BASIC_BLOCK_SHIFT);
@@ -73,6 +72,7 @@ static int iget_set(struct inode *inode, void *opaque)
        struct gfs2_inum_host *inum = opaque;
 
        ip->i_num = *inum;
+       inode->i_ino = inum->no_addr;
        return 0;
 }