diff options
author | Christoph Hellwig <hch@infradead.org> | 2009-11-14 11:17:22 -0500 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2009-12-11 16:11:22 -0500 |
commit | b8f82a4a6fc79fcb4b2eb81252020e04c9b49da5 (patch) | |
tree | 4f6c6d123e39ea80d43927398c279f29ca1143ef /fs/xfs/xfs_filestream.h | |
parent | 5683f53e36235234f7861909fdff878ff1f1bb20 (diff) |
xfs: kill the STATIC_INLINE macro
Remove our own STATIC_INLINE macro. For small function inside
implementation files just use STATIC and let gcc inline it, and for
those in headers do the normal static inline - they are all small
enough to be inlined for debug builds, too.
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_filestream.h')
-rw-r--r-- | fs/xfs/xfs_filestream.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_filestream.h b/fs/xfs/xfs_filestream.h index f655f7dc334c..4aba67c5f64f 100644 --- a/fs/xfs/xfs_filestream.h +++ b/fs/xfs/xfs_filestream.h | |||
@@ -79,7 +79,7 @@ extern ktrace_t *xfs_filestreams_trace_buf; | |||
79 | * the cache that reference per-ag array elements that have since been | 79 | * the cache that reference per-ag array elements that have since been |
80 | * reallocated. | 80 | * reallocated. |
81 | */ | 81 | */ |
82 | STATIC_INLINE int | 82 | static inline int |
83 | xfs_filestream_peek_ag( | 83 | xfs_filestream_peek_ag( |
84 | xfs_mount_t *mp, | 84 | xfs_mount_t *mp, |
85 | xfs_agnumber_t agno) | 85 | xfs_agnumber_t agno) |
@@ -87,7 +87,7 @@ xfs_filestream_peek_ag( | |||
87 | return atomic_read(&mp->m_perag[agno].pagf_fstrms); | 87 | return atomic_read(&mp->m_perag[agno].pagf_fstrms); |
88 | } | 88 | } |
89 | 89 | ||
90 | STATIC_INLINE int | 90 | static inline int |
91 | xfs_filestream_get_ag( | 91 | xfs_filestream_get_ag( |
92 | xfs_mount_t *mp, | 92 | xfs_mount_t *mp, |
93 | xfs_agnumber_t agno) | 93 | xfs_agnumber_t agno) |
@@ -95,7 +95,7 @@ xfs_filestream_get_ag( | |||
95 | return atomic_inc_return(&mp->m_perag[agno].pagf_fstrms); | 95 | return atomic_inc_return(&mp->m_perag[agno].pagf_fstrms); |
96 | } | 96 | } |
97 | 97 | ||
98 | STATIC_INLINE int | 98 | static inline int |
99 | xfs_filestream_put_ag( | 99 | xfs_filestream_put_ag( |
100 | xfs_mount_t *mp, | 100 | xfs_mount_t *mp, |
101 | xfs_agnumber_t agno) | 101 | xfs_agnumber_t agno) |
@@ -122,7 +122,7 @@ int xfs_filestream_new_ag(struct xfs_bmalloca *ap, xfs_agnumber_t *agp); | |||
122 | 122 | ||
123 | 123 | ||
124 | /* filestreams for the inode? */ | 124 | /* filestreams for the inode? */ |
125 | STATIC_INLINE int | 125 | static inline int |
126 | xfs_inode_is_filestream( | 126 | xfs_inode_is_filestream( |
127 | struct xfs_inode *ip) | 127 | struct xfs_inode *ip) |
128 | { | 128 | { |