aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-11-27 22:23:40 -0500
committerNiv Sardi <xaiki@sgi.com>2008-11-30 19:37:52 -0500
commit76d8b277f7b715f78ee3cb09ee112563639693a5 (patch)
tree49d4e3ae1d579e4fa353cfd32150c11512df7a78 /fs/xfs/xfs_inode.h
parent23fac50f959a87febf7ce4ae9d47525121f10c7a (diff)
[XFS] stop using xfs_itobp in xfs_iread
The only caller of xfs_itobp that doesn't have i_blkno setup is now the initial inode read. It needs access to the whole xfs_imap so using xfs_inotobp is not an option. Instead opencode the buffer lookup in xfs_iread and kill all the functionality for the initial map from xfs_itobp. (First sent on October 21st) 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_inode.h')
-rw-r--r--fs/xfs/xfs_inode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h
index 705083a8ffaf..ec8b539439d3 100644
--- a/fs/xfs/xfs_inode.h
+++ b/fs/xfs/xfs_inode.h
@@ -157,7 +157,7 @@ typedef struct xfs_icdinode {
157#define XFS_IFEXTIREC 0x08 /* Indirection array of extent blocks */ 157#define XFS_IFEXTIREC 0x08 /* Indirection array of extent blocks */
158 158
159/* 159/*
160 * Flags for xfs_inotobp, xfs_itobp(), xfs_imap() and xfs_dilocate(). 160 * Flags for xfs_inotobp, xfs_imap() and xfs_dilocate().
161 */ 161 */
162#define XFS_IMAP_LOOKUP 0x1 162#define XFS_IMAP_LOOKUP 0x1
163#define XFS_IMAP_BULKSTAT 0x2 163#define XFS_IMAP_BULKSTAT 0x2
@@ -550,7 +550,7 @@ int xfs_inotobp(struct xfs_mount *, struct xfs_trans *,
550 struct xfs_buf **, int *, uint); 550 struct xfs_buf **, int *, uint);
551int xfs_itobp(struct xfs_mount *, struct xfs_trans *, 551int xfs_itobp(struct xfs_mount *, struct xfs_trans *,
552 struct xfs_inode *, struct xfs_dinode **, 552 struct xfs_inode *, struct xfs_dinode **,
553 struct xfs_buf **, xfs_daddr_t, uint, uint); 553 struct xfs_buf **, uint);
554void xfs_dinode_from_disk(struct xfs_icdinode *, 554void xfs_dinode_from_disk(struct xfs_icdinode *,
555 struct xfs_dinode *); 555 struct xfs_dinode *);
556void xfs_dinode_to_disk(struct xfs_dinode *, 556void xfs_dinode_to_disk(struct xfs_dinode *,