diff options
| -rw-r--r-- | fs/xfs/xfs_reflink.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/xfs/xfs_reflink.c b/fs/xfs/xfs_reflink.c index 47aea2e82c26..bcc2ad4f0899 100644 --- a/fs/xfs/xfs_reflink.c +++ b/fs/xfs/xfs_reflink.c | |||
| @@ -1295,6 +1295,11 @@ xfs_reflink_remap_range( | |||
| 1295 | if (ret <= 0) | 1295 | if (ret <= 0) |
| 1296 | goto out_unlock; | 1296 | goto out_unlock; |
| 1297 | 1297 | ||
| 1298 | /* Attach dquots to dest inode before changing block map */ | ||
| 1299 | ret = xfs_qm_dqattach(dest, 0); | ||
| 1300 | if (ret) | ||
| 1301 | goto out_unlock; | ||
| 1302 | |||
| 1298 | trace_xfs_reflink_remap_range(src, pos_in, len, dest, pos_out); | 1303 | trace_xfs_reflink_remap_range(src, pos_in, len, dest, pos_out); |
| 1299 | 1304 | ||
| 1300 | /* | 1305 | /* |
