diff options
author | Christoph Hellwig <hch@lst.de> | 2008-11-27 22:23:41 -0500 |
---|---|---|
committer | Niv Sardi <xaiki@sgi.com> | 2008-11-30 19:38:03 -0500 |
commit | 94e1b69d1abd108d306e926c3012ec89e481c0da (patch) | |
tree | d7fb02a0c855729831dcddbef6afcb518d3ed870 /fs/xfs/xfs_imap.h | |
parent | a1941895034cda2bffa23ba845607c82138ccf52 (diff) |
[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>
Diffstat (limited to 'fs/xfs/xfs_imap.h')
-rw-r--r-- | fs/xfs/xfs_imap.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/xfs/xfs_imap.h b/fs/xfs/xfs_imap.h index f9ce62890ea5..08690005739e 100644 --- a/fs/xfs/xfs_imap.h +++ b/fs/xfs/xfs_imap.h | |||
@@ -25,14 +25,7 @@ | |||
25 | typedef struct xfs_imap { | 25 | typedef struct xfs_imap { |
26 | xfs_daddr_t im_blkno; /* starting BB of inode chunk */ | 26 | xfs_daddr_t im_blkno; /* starting BB of inode chunk */ |
27 | uint im_len; /* length in BBs of inode chunk */ | 27 | uint im_len; /* length in BBs of inode chunk */ |
28 | xfs_agblock_t im_agblkno; /* logical block of inode chunk in ag */ | ||
29 | ushort im_ioffset; /* inode offset in block in "inodes" */ | ||
30 | ushort im_boffset; /* inode offset in block in bytes */ | 28 | ushort im_boffset; /* inode offset in block in bytes */ |
31 | } xfs_imap_t; | 29 | } xfs_imap_t; |
32 | 30 | ||
33 | struct xfs_mount; | ||
34 | struct xfs_trans; | ||
35 | int xfs_imap(struct xfs_mount *, struct xfs_trans *, xfs_ino_t, | ||
36 | xfs_imap_t *, uint); | ||
37 | |||
38 | #endif /* __XFS_IMAP_H__ */ | 31 | #endif /* __XFS_IMAP_H__ */ |