diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-07-03 12:21:22 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-07-22 10:46:56 -0500 |
commit | 475ee413f34165f8e6fcd7fbff3a4da1dce48c99 (patch) | |
tree | a32dadb75dbbddf45fdd989ad8f44dd0ed466368 /fs/xfs/xfs_inode.h | |
parent | 6b7a03f03a2f8b1629133e35729eba4727fae3cc (diff) | |
download | blackbird-op-linux-475ee413f34165f8e6fcd7fbff3a4da1dce48c99.tar.gz blackbird-op-linux-475ee413f34165f8e6fcd7fbff3a4da1dce48c99.zip |
xfs: merge xfs_itobp into xfs_imap_to_bp
All callers of xfs_imap_to_bp want the dinode pointer, so let's calculate it
inside xfs_imap_to_bp. Once that is done xfs_itobp becomes a fairly pointless
wrapper which can be replaced with direct calls to xfs_imap_to_bp.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r-- | fs/xfs/xfs_inode.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index 1efff36a75b6..942fd7f9110b 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h @@ -560,9 +560,9 @@ do { \ int xfs_inotobp(struct xfs_mount *, struct xfs_trans *, xfs_ino_t, struct xfs_dinode **, struct xfs_buf **, int *, uint); -int xfs_itobp(struct xfs_mount *, struct xfs_trans *, - struct xfs_inode *, struct xfs_dinode **, - struct xfs_buf **, uint); +int xfs_imap_to_bp(struct xfs_mount *, struct xfs_trans *, + struct xfs_imap *, struct xfs_dinode **, + struct xfs_buf **, uint, uint); int xfs_iread(struct xfs_mount *, struct xfs_trans *, struct xfs_inode *, uint); void xfs_dinode_to_disk(struct xfs_dinode *, |