aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r--fs/xfs/xfs_log.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index 3cf115d8de75..319b98eb410c 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -1237,9 +1237,9 @@ xlog_alloc_log(xfs_mount_t *mp,
1237 XFS_BUF_SET_FSPRIVATE2(bp, (unsigned long)1); 1237 XFS_BUF_SET_FSPRIVATE2(bp, (unsigned long)1);
1238 iclog->ic_bp = bp; 1238 iclog->ic_bp = bp;
1239 iclog->hic_data = bp->b_addr; 1239 iclog->hic_data = bp->b_addr;
1240 1240#ifdef DEBUG
1241 log->l_iclog_bak[i] = (xfs_caddr_t)&(iclog->ic_header); 1241 log->l_iclog_bak[i] = (xfs_caddr_t)&(iclog->ic_header);
1242 1242#endif
1243 head = &iclog->ic_header; 1243 head = &iclog->ic_header;
1244 memset(head, 0, sizeof(xlog_rec_header_t)); 1244 memset(head, 0, sizeof(xlog_rec_header_t));
1245 head->h_magicno = cpu_to_be32(XLOG_HEADER_MAGIC_NUM); 1245 head->h_magicno = cpu_to_be32(XLOG_HEADER_MAGIC_NUM);
@@ -1250,7 +1250,6 @@ xlog_alloc_log(xfs_mount_t *mp,
1250 head->h_fmt = cpu_to_be32(XLOG_FMT); 1250 head->h_fmt = cpu_to_be32(XLOG_FMT);
1251 memcpy(&head->h_fs_uuid, &mp->m_sb.sb_uuid, sizeof(uuid_t)); 1251 memcpy(&head->h_fs_uuid, &mp->m_sb.sb_uuid, sizeof(uuid_t));
1252 1252
1253
1254 iclog->ic_size = XFS_BUF_SIZE(bp) - log->l_iclog_hsize; 1253 iclog->ic_size = XFS_BUF_SIZE(bp) - log->l_iclog_hsize;
1255 iclog->ic_state = XLOG_STATE_ACTIVE; 1254 iclog->ic_state = XLOG_STATE_ACTIVE;
1256 iclog->ic_log = log; 1255 iclog->ic_log = log;