mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
synced 2025-10-12 23:50:17 +10:00
xfs: remove the t_magic field in struct xfs_trans
The t_magic field is only ever assigned to, but never read. Remove it. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
parent
415dee1e06
commit
471511d6ef
@ -100,7 +100,6 @@ xfs_trans_dup(
|
||||
/*
|
||||
* Initialize the new transaction structure.
|
||||
*/
|
||||
ntp->t_magic = XFS_TRANS_HEADER_MAGIC;
|
||||
ntp->t_mountp = tp->t_mountp;
|
||||
INIT_LIST_HEAD(&ntp->t_items);
|
||||
INIT_LIST_HEAD(&ntp->t_busy);
|
||||
@ -275,7 +274,6 @@ retry:
|
||||
ASSERT(!(flags & XFS_TRANS_RES_FDBLKS) ||
|
||||
xfs_has_lazysbcount(mp));
|
||||
|
||||
tp->t_magic = XFS_TRANS_HEADER_MAGIC;
|
||||
tp->t_flags = flags;
|
||||
tp->t_mountp = mp;
|
||||
INIT_LIST_HEAD(&tp->t_items);
|
||||
|
@ -122,7 +122,6 @@ void xfs_log_item_init(struct xfs_mount *mp, struct xfs_log_item *item,
|
||||
* This is the structure maintained for every active transaction.
|
||||
*/
|
||||
typedef struct xfs_trans {
|
||||
unsigned int t_magic; /* magic number */
|
||||
unsigned int t_log_res; /* amt of log space resvd */
|
||||
unsigned int t_log_count; /* count for perm log res */
|
||||
unsigned int t_blk_res; /* # of blocks resvd */
|
||||
|
Loading…
Reference in New Issue
Block a user