aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_rw.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2009-11-14 11:17:21 -0500
committerAlex Elder <aelder@sgi.com>2009-12-11 16:11:22 -0500
commit5683f53e36235234f7861909fdff878ff1f1bb20 (patch)
tree3d1315b115319403df9ac59d6a01c5ddf4719058 /fs/xfs/xfs_rw.h
parente82fa0c7ca29b805388aa51d3cad2cb7a4df3084 (diff)
xfs: uninline xfs_get_extsz_hint
This function is too large to efficiently be inlined. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <david@fromorbit.com> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_rw.h')
-rw-r--r--fs/xfs/xfs_rw.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/fs/xfs/xfs_rw.h b/fs/xfs/xfs_rw.h
index 726014d1c925..571f2174435c 100644
--- a/fs/xfs/xfs_rw.h
+++ b/fs/xfs/xfs_rw.h
@@ -37,27 +37,6 @@ xfs_fsb_to_db(struct xfs_inode *ip, xfs_fsblock_t fsb)
37} 37}
38 38
39/* 39/*
40 * helper function to extract extent size hint from inode
41 */
42STATIC_INLINE xfs_extlen_t
43xfs_get_extsz_hint(
44 xfs_inode_t *ip)
45{
46 xfs_extlen_t extsz;
47
48 if (unlikely(XFS_IS_REALTIME_INODE(ip))) {
49 extsz = (ip->i_d.di_flags & XFS_DIFLAG_EXTSIZE)
50 ? ip->i_d.di_extsize
51 : ip->i_mount->m_sb.sb_rextsize;
52 ASSERT(extsz);
53 } else {
54 extsz = (ip->i_d.di_flags & XFS_DIFLAG_EXTSIZE)
55 ? ip->i_d.di_extsize : 0;
56 }
57 return extsz;
58}
59
60/*
61 * Prototypes for functions in xfs_rw.c. 40 * Prototypes for functions in xfs_rw.c.
62 */ 41 */
63extern int xfs_write_clear_setuid(struct xfs_inode *ip); 42extern int xfs_write_clear_setuid(struct xfs_inode *ip);
@@ -69,5 +48,6 @@ extern int xfs_read_buf(struct xfs_mount *mp, xfs_buftarg_t *btp,
69 struct xfs_buf **bpp); 48 struct xfs_buf **bpp);
70extern void xfs_ioerror_alert(char *func, struct xfs_mount *mp, 49extern void xfs_ioerror_alert(char *func, struct xfs_mount *mp,
71 xfs_buf_t *bp, xfs_daddr_t blkno); 50 xfs_buf_t *bp, xfs_daddr_t blkno);
51extern xfs_extlen_t xfs_get_extsz_hint(struct xfs_inode *ip);
72 52
73#endif /* __XFS_RW_H__ */ 53#endif /* __XFS_RW_H__ */