diff options
author | Felix Blyakher <felixb@sgi.com> | 2009-06-12 22:28:59 -0400 |
---|---|---|
committer | Felix Blyakher <felixb@sgi.com> | 2009-06-12 22:28:59 -0400 |
commit | fd40261354802b0f05f6f67121235aa002e87069 (patch) | |
tree | 935f23fa1528f6fe5a078383c9343907ea27fbb3 /fs/xfs/xfs_iomap.c | |
parent | f3ad116588151b3371ae4e092290e4f48e62b8bb (diff) | |
parent | e83f1eb6bfc4004c19a99ee5f5aa65bd3fbecec3 (diff) |
Merge branch 'master' of git://oss.sgi.com/xfs/xfs into for-linus
Diffstat (limited to 'fs/xfs/xfs_iomap.c')
-rw-r--r-- | fs/xfs/xfs_iomap.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index 5aaa2d7ec155..67ae5555a30a 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c | |||
@@ -42,7 +42,6 @@ | |||
42 | #include "xfs_error.h" | 42 | #include "xfs_error.h" |
43 | #include "xfs_itable.h" | 43 | #include "xfs_itable.h" |
44 | #include "xfs_rw.h" | 44 | #include "xfs_rw.h" |
45 | #include "xfs_acl.h" | ||
46 | #include "xfs_attr.h" | 45 | #include "xfs_attr.h" |
47 | #include "xfs_buf_item.h" | 46 | #include "xfs_buf_item.h" |
48 | #include "xfs_trans_space.h" | 47 | #include "xfs_trans_space.h" |
@@ -385,7 +384,7 @@ xfs_iomap_write_direct( | |||
385 | * Make sure that the dquots are there. This doesn't hold | 384 | * Make sure that the dquots are there. This doesn't hold |
386 | * the ilock across a disk read. | 385 | * the ilock across a disk read. |
387 | */ | 386 | */ |
388 | error = XFS_QM_DQATTACH(ip->i_mount, ip, XFS_QMOPT_ILOCKED); | 387 | error = xfs_qm_dqattach_locked(ip, 0); |
389 | if (error) | 388 | if (error) |
390 | return XFS_ERROR(error); | 389 | return XFS_ERROR(error); |
391 | 390 | ||
@@ -444,8 +443,7 @@ xfs_iomap_write_direct( | |||
444 | if (error) | 443 | if (error) |
445 | goto error_out; | 444 | goto error_out; |
446 | 445 | ||
447 | error = XFS_TRANS_RESERVE_QUOTA_NBLKS(mp, tp, ip, | 446 | error = xfs_trans_reserve_quota_nblks(tp, ip, qblocks, 0, quota_flag); |
448 | qblocks, 0, quota_flag); | ||
449 | if (error) | 447 | if (error) |
450 | goto error1; | 448 | goto error1; |
451 | 449 | ||
@@ -495,7 +493,7 @@ xfs_iomap_write_direct( | |||
495 | 493 | ||
496 | error0: /* Cancel bmap, unlock inode, unreserve quota blocks, cancel trans */ | 494 | error0: /* Cancel bmap, unlock inode, unreserve quota blocks, cancel trans */ |
497 | xfs_bmap_cancel(&free_list); | 495 | xfs_bmap_cancel(&free_list); |
498 | XFS_TRANS_UNRESERVE_QUOTA_NBLKS(mp, tp, ip, qblocks, 0, quota_flag); | 496 | xfs_trans_unreserve_quota_nblks(tp, ip, qblocks, 0, quota_flag); |
499 | 497 | ||
500 | error1: /* Just cancel transaction */ | 498 | error1: /* Just cancel transaction */ |
501 | xfs_trans_cancel(tp, XFS_TRANS_RELEASE_LOG_RES | XFS_TRANS_ABORT); | 499 | xfs_trans_cancel(tp, XFS_TRANS_RELEASE_LOG_RES | XFS_TRANS_ABORT); |
@@ -582,7 +580,7 @@ xfs_iomap_write_delay( | |||
582 | * Make sure that the dquots are there. This doesn't hold | 580 | * Make sure that the dquots are there. This doesn't hold |
583 | * the ilock across a disk read. | 581 | * the ilock across a disk read. |
584 | */ | 582 | */ |
585 | error = XFS_QM_DQATTACH(mp, ip, XFS_QMOPT_ILOCKED); | 583 | error = xfs_qm_dqattach_locked(ip, 0); |
586 | if (error) | 584 | if (error) |
587 | return XFS_ERROR(error); | 585 | return XFS_ERROR(error); |
588 | 586 | ||
@@ -684,7 +682,8 @@ xfs_iomap_write_allocate( | |||
684 | /* | 682 | /* |
685 | * Make sure that the dquots are there. | 683 | * Make sure that the dquots are there. |
686 | */ | 684 | */ |
687 | if ((error = XFS_QM_DQATTACH(mp, ip, 0))) | 685 | error = xfs_qm_dqattach(ip, 0); |
686 | if (error) | ||
688 | return XFS_ERROR(error); | 687 | return XFS_ERROR(error); |
689 | 688 | ||
690 | offset_fsb = XFS_B_TO_FSBT(mp, offset); | 689 | offset_fsb = XFS_B_TO_FSBT(mp, offset); |