diff options
Diffstat (limited to 'fs/xfs/xfs_attr.c')
-rw-r--r-- | fs/xfs/xfs_attr.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c index 5fde1654b430..cd1008b1c4cd 100644 --- a/fs/xfs/xfs_attr.c +++ b/fs/xfs/xfs_attr.c | |||
@@ -249,8 +249,9 @@ xfs_attr_set_int(xfs_inode_t *dp, struct xfs_name *name, | |||
249 | /* | 249 | /* |
250 | * Attach the dquots to the inode. | 250 | * Attach the dquots to the inode. |
251 | */ | 251 | */ |
252 | if ((error = XFS_QM_DQATTACH(mp, dp, 0))) | 252 | error = xfs_qm_dqattach(dp, 0); |
253 | return (error); | 253 | if (error) |
254 | return error; | ||
254 | 255 | ||
255 | /* | 256 | /* |
256 | * If the inode doesn't have an attribute fork, add one. | 257 | * If the inode doesn't have an attribute fork, add one. |
@@ -311,7 +312,7 @@ xfs_attr_set_int(xfs_inode_t *dp, struct xfs_name *name, | |||
311 | } | 312 | } |
312 | xfs_ilock(dp, XFS_ILOCK_EXCL); | 313 | xfs_ilock(dp, XFS_ILOCK_EXCL); |
313 | 314 | ||
314 | error = XFS_TRANS_RESERVE_QUOTA_NBLKS(mp, args.trans, dp, args.total, 0, | 315 | error = xfs_trans_reserve_quota_nblks(args.trans, dp, args.total, 0, |
315 | rsvd ? XFS_QMOPT_RES_REGBLKS | XFS_QMOPT_FORCE_RES : | 316 | rsvd ? XFS_QMOPT_RES_REGBLKS | XFS_QMOPT_FORCE_RES : |
316 | XFS_QMOPT_RES_REGBLKS); | 317 | XFS_QMOPT_RES_REGBLKS); |
317 | if (error) { | 318 | if (error) { |
@@ -501,8 +502,9 @@ xfs_attr_remove_int(xfs_inode_t *dp, struct xfs_name *name, int flags) | |||
501 | /* | 502 | /* |
502 | * Attach the dquots to the inode. | 503 | * Attach the dquots to the inode. |
503 | */ | 504 | */ |
504 | if ((error = XFS_QM_DQATTACH(mp, dp, 0))) | 505 | error = xfs_qm_dqattach(dp, 0); |
505 | return (error); | 506 | if (error) |
507 | return error; | ||
506 | 508 | ||
507 | /* | 509 | /* |
508 | * Start our first transaction of the day. | 510 | * Start our first transaction of the day. |