diff options
Diffstat (limited to 'fs/xfs/xfs_icreate_item.c')
-rw-r--r-- | fs/xfs/xfs_icreate_item.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/xfs/xfs_icreate_item.c b/fs/xfs/xfs_icreate_item.c index d2eaccfa73f4..7e4549233251 100644 --- a/fs/xfs/xfs_icreate_item.c +++ b/fs/xfs/xfs_icreate_item.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "xfs_trans_priv.h" | 28 | #include "xfs_trans_priv.h" |
29 | #include "xfs_error.h" | 29 | #include "xfs_error.h" |
30 | #include "xfs_icreate_item.h" | 30 | #include "xfs_icreate_item.h" |
31 | #include "xfs_log.h" | ||
31 | 32 | ||
32 | kmem_zone_t *xfs_icreate_zone; /* inode create item zone */ | 33 | kmem_zone_t *xfs_icreate_zone; /* inode create item zone */ |
33 | 34 | ||
@@ -58,13 +59,14 @@ xfs_icreate_item_size( | |||
58 | STATIC void | 59 | STATIC void |
59 | xfs_icreate_item_format( | 60 | xfs_icreate_item_format( |
60 | struct xfs_log_item *lip, | 61 | struct xfs_log_item *lip, |
61 | struct xfs_log_iovec *log_vector) | 62 | struct xfs_log_vec *lv) |
62 | { | 63 | { |
63 | struct xfs_icreate_item *icp = ICR_ITEM(lip); | 64 | struct xfs_icreate_item *icp = ICR_ITEM(lip); |
65 | struct xfs_log_iovec *vecp = NULL; | ||
64 | 66 | ||
65 | log_vector->i_addr = (xfs_caddr_t)&icp->ic_format; | 67 | xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_ICREATE, |
66 | log_vector->i_len = sizeof(struct xfs_icreate_log); | 68 | &icp->ic_format, |
67 | log_vector->i_type = XLOG_REG_TYPE_ICREATE; | 69 | sizeof(struct xfs_icreate_log)); |
68 | } | 70 | } |
69 | 71 | ||
70 | 72 | ||