[XFS] embededd struct xfs_imap into xfs_inode
Most uses of struct xfs_imap are to map and inode to a buffer. To avoid copying around the inode location information we should just embedd a strcut xfs_imap into the xfs_inode. To make sure it doesn't bloat an inode the im_len is changed to a ushort, which is fine as that's what the users exepect anyway. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <david@fromorbit.com> Signed-off-by: Niv Sardi <xaiki@sgi.com>
This commit is contained in:
parent
94e1b69d1a
commit
92bfc6e7c4
7 changed files with 33 additions and 71 deletions
|
@ -942,9 +942,9 @@ xfs_inode_item_init(
|
|||
|
||||
iip->ili_format.ilf_type = XFS_LI_INODE;
|
||||
iip->ili_format.ilf_ino = ip->i_ino;
|
||||
iip->ili_format.ilf_blkno = ip->i_blkno;
|
||||
iip->ili_format.ilf_len = ip->i_len;
|
||||
iip->ili_format.ilf_boffset = ip->i_boffset;
|
||||
iip->ili_format.ilf_blkno = ip->i_imap.im_blkno;
|
||||
iip->ili_format.ilf_len = ip->i_imap.im_len;
|
||||
iip->ili_format.ilf_boffset = ip->i_imap.im_boffset;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue