mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
xfs: call xfs_qm_dqattach before performing reflink operations
Ensure that we've attached all the necessary dquots before performing reflink operations so that quota accounting is accurate. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Brian Foster <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
This commit is contained in:
parent
6ca30729c2
commit
09ac862397
1 changed files with 5 additions and 0 deletions
|
|
@ -1295,6 +1295,11 @@ xfs_reflink_remap_range(
|
|||
if (ret <= 0)
|
||||
goto out_unlock;
|
||||
|
||||
/* Attach dquots to dest inode before changing block map */
|
||||
ret = xfs_qm_dqattach(dest, 0);
|
||||
if (ret)
|
||||
goto out_unlock;
|
||||
|
||||
trace_xfs_reflink_remap_range(src, pos_in, len, dest, pos_out);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue