[XFS] merge xfs_imap into xfs_dilocate
authorChristoph Hellwig <hch@lst.de>
Fri, 28 Nov 2008 03:23:41 +0000 (14:23 +1100)
committerNiv Sardi <xaiki@sgi.com>
Mon, 1 Dec 2008 00:38:03 +0000 (11:38 +1100)
commit94e1b69d1abd108d306e926c3012ec89e481c0da
treed7fb02a0c855729831dcddbef6afcb518d3ed870
parenta1941895034cda2bffa23ba845607c82138ccf52
[XFS] merge xfs_imap into xfs_dilocate

xfs_imap is the only caller of xfs_dilocate and doesn't add any significant
value.  Merge the two functions and document the various cases we have for
inode cluster lookup in the new xfs_imap.

Also remove the unused im_agblkno and im_ioffset fields from struct xfs_imap
while we're at it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
fs/xfs/xfs_ialloc.c
fs/xfs/xfs_ialloc.h
fs/xfs/xfs_imap.h
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h