diff options
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.h b/fs/xfs/libxfs/xfs_ialloc.h index 12401fea7bff..6e450df2979b 100644 --- a/fs/xfs/libxfs/xfs_ialloc.h +++ b/fs/xfs/libxfs/xfs_ialloc.h | |||
@@ -51,8 +51,7 @@ xfs_icluster_size_fsb( | |||
51 | static inline struct xfs_dinode * | 51 | static inline struct xfs_dinode * |
52 | xfs_make_iptr(struct xfs_mount *mp, struct xfs_buf *b, int o) | 52 | xfs_make_iptr(struct xfs_mount *mp, struct xfs_buf *b, int o) |
53 | { | 53 | { |
54 | return (struct xfs_dinode *) | 54 | return xfs_buf_offset(b, o << (mp)->m_sb.sb_inodelog); |
55 | (xfs_buf_offset(b, o << (mp)->m_sb.sb_inodelog)); | ||
56 | } | 55 | } |
57 | 56 | ||
58 | /* | 57 | /* |