mirror of https://github.com/torvalds/linux.git
xfs: remove q_qlock locking in xfs_qm_scall_setqlim
q_type can't change for an existing dquot, so there is no need for the locking here. 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
55c1bc3eb9
commit
e85e74e4c9
|
|
@ -302,9 +302,7 @@ xfs_qm_scall_setqlim(
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
mutex_lock(&dqp->q_qlock);
|
|
||||||
defq = xfs_get_defquota(q, xfs_dquot_type(dqp));
|
defq = xfs_get_defquota(q, xfs_dquot_type(dqp));
|
||||||
mutex_unlock(&dqp->q_qlock);
|
|
||||||
|
|
||||||
error = xfs_trans_alloc(mp, &M_RES(mp)->tr_qm_setqlim, 0, 0, 0, &tp);
|
error = xfs_trans_alloc(mp, &M_RES(mp)->tr_qm_setqlim, 0, 0, 0, &tp);
|
||||||
if (error)
|
if (error)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue