diff options
author | Nathan Scott <nathans@sgi.com> | 2005-11-01 22:38:42 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-11-01 22:38:42 -0500 |
commit | a844f4510dce23c07f3923cb42138f5fdd745017 (patch) | |
tree | ffb37e9e60f02d5e92bd69bb53b568e1c991c17f /fs/xfs/xfs_inode_item.h | |
parent | 61c1e689fbde7cb50a76262bba190715d86beab6 (diff) |
[XFS] Remove xfs_macros.c, xfs_macros.h, rework headers a whole lot.
SGI-PV: 943122
SGI-Modid: xfs-linux:xfs-kern:23901a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode_item.h')
-rw-r--r-- | fs/xfs/xfs_inode_item.h | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/fs/xfs/xfs_inode_item.h b/fs/xfs/xfs_inode_item.h index d8775e0d6291..61a806ba8fdd 100644 --- a/fs/xfs/xfs_inode_item.h +++ b/fs/xfs/xfs_inode_item.h | |||
@@ -159,38 +159,33 @@ typedef struct xfs_inode_log_item { | |||
159 | } xfs_inode_log_item_t; | 159 | } xfs_inode_log_item_t; |
160 | 160 | ||
161 | 161 | ||
162 | #if XFS_WANT_FUNCS || (XFS_WANT_SPACE && XFSSO_XFS_ILOG_FDATA) | ||
163 | int xfs_ilog_fdata(int w); | ||
164 | #define XFS_ILOG_FDATA(w) xfs_ilog_fdata(w) | 162 | #define XFS_ILOG_FDATA(w) xfs_ilog_fdata(w) |
165 | #else | 163 | static inline int xfs_ilog_fdata(int w) |
166 | #define XFS_ILOG_FDATA(w) \ | 164 | { |
167 | ((w) == XFS_DATA_FORK ? XFS_ILOG_DDATA : XFS_ILOG_ADATA) | 165 | return (w == XFS_DATA_FORK ? XFS_ILOG_DDATA : XFS_ILOG_ADATA); |
168 | #endif | 166 | } |
169 | 167 | ||
170 | #endif /* __KERNEL__ */ | 168 | #endif /* __KERNEL__ */ |
171 | 169 | ||
172 | #if XFS_WANT_FUNCS || (XFS_WANT_SPACE && XFSSO_XFS_ILOG_FBROOT) | ||
173 | int xfs_ilog_fbroot(int w); | ||
174 | #define XFS_ILOG_FBROOT(w) xfs_ilog_fbroot(w) | 170 | #define XFS_ILOG_FBROOT(w) xfs_ilog_fbroot(w) |
175 | #else | 171 | static inline int xfs_ilog_fbroot(int w) |
176 | #define XFS_ILOG_FBROOT(w) \ | 172 | { |
177 | ((w) == XFS_DATA_FORK ? XFS_ILOG_DBROOT : XFS_ILOG_ABROOT) | 173 | return (w == XFS_DATA_FORK ? XFS_ILOG_DBROOT : XFS_ILOG_ABROOT); |
178 | #endif | 174 | } |
179 | #if XFS_WANT_FUNCS || (XFS_WANT_SPACE && XFSSO_XFS_ILOG_FEXT) | 175 | |
180 | int xfs_ilog_fext(int w); | ||
181 | #define XFS_ILOG_FEXT(w) xfs_ilog_fext(w) | 176 | #define XFS_ILOG_FEXT(w) xfs_ilog_fext(w) |
182 | #else | 177 | static inline int xfs_ilog_fext(int w) |
183 | #define XFS_ILOG_FEXT(w) \ | 178 | { |
184 | ((w) == XFS_DATA_FORK ? XFS_ILOG_DEXT : XFS_ILOG_AEXT) | 179 | return (w == XFS_DATA_FORK ? XFS_ILOG_DEXT : XFS_ILOG_AEXT); |
185 | #endif | 180 | } |
186 | 181 | ||
187 | #ifdef __KERNEL__ | 182 | #ifdef __KERNEL__ |
188 | 183 | ||
189 | void xfs_inode_item_init(struct xfs_inode *, struct xfs_mount *); | 184 | extern void xfs_inode_item_init(struct xfs_inode *, struct xfs_mount *); |
190 | void xfs_inode_item_destroy(struct xfs_inode *); | 185 | extern void xfs_inode_item_destroy(struct xfs_inode *); |
191 | void xfs_iflush_done(struct xfs_buf *, xfs_inode_log_item_t *); | 186 | extern void xfs_iflush_done(struct xfs_buf *, xfs_inode_log_item_t *); |
192 | void xfs_istale_done(struct xfs_buf *, xfs_inode_log_item_t *); | 187 | extern void xfs_istale_done(struct xfs_buf *, xfs_inode_log_item_t *); |
193 | void xfs_iflush_abort(struct xfs_inode *); | 188 | extern void xfs_iflush_abort(struct xfs_inode *); |
194 | 189 | ||
195 | #endif /* __KERNEL__ */ | 190 | #endif /* __KERNEL__ */ |
196 | 191 | ||