diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-08-12 06:49:28 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-08-12 17:11:57 -0400 |
commit | 2a3c0acc351baf1e5e584d8d0692f41d5067582c (patch) | |
tree | e1170f7009b10b864fc67984f3ae45280b8aff8c /fs/xfs/xfs_trans.c | |
parent | 9cd047f3a3c38f5abf998b781296ff0c834e509f (diff) |
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>
Diffstat (limited to 'fs/xfs/xfs_trans.c')
-rw-r--r-- | fs/xfs/xfs_trans.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c index 1d2a0613cf6a..9b70df3cdcd7 100644 --- a/fs/xfs/xfs_trans.c +++ b/fs/xfs/xfs_trans.c | |||
@@ -744,7 +744,7 @@ _xfs_trans_alloc( | |||
744 | atomic_inc(&mp->m_active_trans); | 744 | atomic_inc(&mp->m_active_trans); |
745 | 745 | ||
746 | tp = kmem_zone_zalloc(xfs_trans_zone, memflags); | 746 | tp = kmem_zone_zalloc(xfs_trans_zone, memflags); |
747 | tp->t_magic = XFS_TRANS_MAGIC; | 747 | tp->t_magic = XFS_TRANS_HEADER_MAGIC; |
748 | tp->t_type = type; | 748 | tp->t_type = type; |
749 | tp->t_mountp = mp; | 749 | tp->t_mountp = mp; |
750 | INIT_LIST_HEAD(&tp->t_items); | 750 | INIT_LIST_HEAD(&tp->t_items); |
@@ -789,7 +789,7 @@ xfs_trans_dup( | |||
789 | /* | 789 | /* |
790 | * Initialize the new transaction structure. | 790 | * Initialize the new transaction structure. |
791 | */ | 791 | */ |
792 | ntp->t_magic = XFS_TRANS_MAGIC; | 792 | ntp->t_magic = XFS_TRANS_HEADER_MAGIC; |
793 | ntp->t_type = tp->t_type; | 793 | ntp->t_type = tp->t_type; |
794 | ntp->t_mountp = tp->t_mountp; | 794 | ntp->t_mountp = tp->t_mountp; |
795 | INIT_LIST_HEAD(&ntp->t_items); | 795 | INIT_LIST_HEAD(&ntp->t_items); |