diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-08 13:52:05 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-30 10:34:48 -0500 |
commit | e7c698d74fc9e0e76b3086062b0519df3601ff52 (patch) | |
tree | 86235c17ba14372b0265bef88fe677ebaf16ad5d /fs/gfs2 | |
parent | 6b124d8dba1f46c5f2caf3b3159bbe627f75b9b6 (diff) |
[GFS2] Inode number is constant
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>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 56b39be76925..19b2736cd52f 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -50,7 +50,6 @@ void gfs2_inode_attr_in(struct gfs2_inode *ip) | |||
50 | struct inode *inode = &ip->i_inode; | 50 | struct inode *inode = &ip->i_inode; |
51 | struct gfs2_dinode_host *di = &ip->i_di; | 51 | struct gfs2_dinode_host *di = &ip->i_di; |
52 | 52 | ||
53 | inode->i_ino = ip->i_num.no_addr; | ||
54 | i_size_write(inode, di->di_size); | 53 | i_size_write(inode, di->di_size); |
55 | inode->i_blocks = di->di_blocks << | 54 | inode->i_blocks = di->di_blocks << |
56 | (GFS2_SB(inode)->sd_sb.sb_bsize_shift - GFS2_BASIC_BLOCK_SHIFT); | 55 | (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) | |||
73 | struct gfs2_inum_host *inum = opaque; | 72 | struct gfs2_inum_host *inum = opaque; |
74 | 73 | ||
75 | ip->i_num = *inum; | 74 | ip->i_num = *inum; |
75 | inode->i_ino = inum->no_addr; | ||
76 | return 0; | 76 | return 0; |
77 | } | 77 | } |
78 | 78 | ||