xfs: call xfs_qm_dqattach before performing reflink operations
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 19 Jan 2018 16:56:04 +0000 (08:56 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 29 Jan 2018 15:27:22 +0000 (07:27 -0800)
commit09ac862397041fc484cd7294b15d41073aa78864
treef80d5fcf80806d92fa0c007004e0180077902f46
parent6ca30729c206d62d88730a904af7d543a56273d8
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 <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_reflink.c