Skip to content

Commit

Permalink
[GFS2] Inode number is constant
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Whitehouse committed Nov 30, 2006
1 parent 6b124d8 commit e7c698d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/gfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}

Expand Down

0 comments on commit e7c698d

Please sign in to comment.