提交 058529c5 编写于 作者: B Brian Foster 提交者: Darrick J. Wong

xfs: use ->t_firstblock in dq alloc

Signed-off-by: NBrian Foster <bfoster@redhat.com>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
上级 64396ff2
......@@ -540,14 +540,13 @@ xfs_qm_dqread_alloc(
struct xfs_trans *tp;
struct xfs_defer_ops dfops;
struct xfs_buf *bp;
xfs_fsblock_t firstblock;
int error;
error = xfs_trans_alloc(mp, &M_RES(mp)->tr_qm_dqalloc,
XFS_QM_DQALLOC_SPACE_RES(mp), 0, 0, &tp);
if (error)
goto err;
xfs_defer_init(tp, &dfops, &firstblock);
xfs_defer_init(tp, &dfops, &tp->t_firstblock);
error = xfs_dquot_disk_alloc(&tp, dqp, &bp);
if (error)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册