diff options
Diffstat (limited to 'fs/xfs/xfs_log.h')
-rw-r--r-- | fs/xfs/xfs_log.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/xfs/xfs_log.h b/fs/xfs/xfs_log.h index e148719e0a5d..384c6c469661 100644 --- a/fs/xfs/xfs_log.h +++ b/fs/xfs/xfs_log.h | |||
@@ -30,6 +30,19 @@ struct xfs_log_vec { | |||
30 | 30 | ||
31 | #define XFS_LOG_VEC_ORDERED (-1) | 31 | #define XFS_LOG_VEC_ORDERED (-1) |
32 | 32 | ||
33 | static inline void * | ||
34 | xlog_copy_iovec(struct xfs_log_iovec **vecp, uint type, void *data, int len) | ||
35 | { | ||
36 | struct xfs_log_iovec *vec = *vecp; | ||
37 | |||
38 | vec->i_type = type; | ||
39 | vec->i_addr = data; | ||
40 | vec->i_len = len; | ||
41 | |||
42 | *vecp = vec + 1; | ||
43 | return vec->i_addr; | ||
44 | } | ||
45 | |||
33 | /* | 46 | /* |
34 | * Structure used to pass callback function and the function's argument | 47 | * Structure used to pass callback function and the function's argument |
35 | * to the log manager. | 48 | * to the log manager. |