xfs: split out on-disk transaction definitions
There's a bunch of definitions in xfs_trans.h that define on-disk formats - transaction headers that get written into the log, log item type definitions, etc. Split out everything into a separate file so that all which remains in xfs_trans.h are kernel only definitions. Also, remove the duplicate magic number definitions for XFS_TRANS_MAGIC... Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
This commit is contained in:
@@ -744,7 +744,7 @@ _xfs_trans_alloc(
|
||||
atomic_inc(&mp->m_active_trans);
|
||||
|
||||
tp = kmem_zone_zalloc(xfs_trans_zone, memflags);
|
||||
tp->t_magic = XFS_TRANS_MAGIC;
|
||||
tp->t_magic = XFS_TRANS_HEADER_MAGIC;
|
||||
tp->t_type = type;
|
||||
tp->t_mountp = mp;
|
||||
INIT_LIST_HEAD(&tp->t_items);
|
||||
@@ -789,7 +789,7 @@ xfs_trans_dup(
|
||||
/*
|
||||
* Initialize the new transaction structure.
|
||||
*/
|
||||
ntp->t_magic = XFS_TRANS_MAGIC;
|
||||
ntp->t_magic = XFS_TRANS_HEADER_MAGIC;
|
||||
ntp->t_type = tp->t_type;
|
||||
ntp->t_mountp = tp->t_mountp;
|
||||
INIT_LIST_HEAD(&ntp->t_items);
|
||||
|
Reference in New Issue
Block a user