diff options
| author | Brian Foster <[email protected]> | 2018-07-12 05:26:11 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2018-07-12 05:26:11 +0000 |
| commit | 2ba13721257e2c76e90e8d83dfd9ba91c434355d (patch) | |
| tree | 13cbd7ae5f70a2e13d7e800ab73501b3d7d3b144 /fs/xfs/xfs_rtalloc.c | |
| parent | xfs: replace xfs_da_args->dfops accesses with ->t_dfops and remove (diff) | |
| download | kernel-2ba13721257e2c76e90e8d83dfd9ba91c434355d.tar.gz kernel-2ba13721257e2c76e90e8d83dfd9ba91c434355d.zip | |
xfs: use ->t_dfops in dqalloc transaction
xfs_dquot_disk_alloc() receives a transaction from the caller and
passes a local dfops along to xfs_bmapi_write(). If we attach this
dfops to the transaction, we have to make sure to clear it before
returning to avoid invalid access of stack memory.
Since xfs_qm_dqread_alloc() is the only caller, pull dfops into the
caller and attach it to the transaction to eliminate this pattern
entirely.
Signed-off-by: Brian Foster <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
0 files changed, 0 insertions, 0 deletions
