diff options
author | Brian Foster | 2018-08-01 07:20:29 -0700 |
---|---|---|
committer | Darrick J. Wong | 2018-08-02 23:05:13 -0700 |
commit | 98719051e75ccf9eca18bd2b569de4ea637b4479 (patch) | |
tree | f07a3069240d0330b138b3fec67cbf7b778b4f0f /fs/xfs/xfs_bmap_item.h | |
parent | 56830d6cc114f76f656d5e65ab355b070d5a695e (diff) |
xfs: refactor internal dfops initialization
The current transaction allocation code conditionally initializes
the ->t_dfops indirection pointer. Transaction commit/cancel check
the validity of the pointer to determine whether to finish/cancel
the internal dfops.
This disallows the ability to use the internal dfops list as a
temporary container (via xfs_trans_alloc_empty()). Refactor
transaction allocation to always initialize ->t_dfops and check
permanent reservation state on transaction commit/cancel.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_bmap_item.h')
0 files changed, 0 insertions, 0 deletions