aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/quota
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-06-23 21:52:50 -0400
committerAlex Elder <aelder@sgi.com>2010-07-26 14:16:44 -0400
commitf2d6761433d69d94e0b39ac44ef0f0f0b0508065 (patch)
tree12b33cc84c66146b9dc16f8df4884a7e6345f20f /fs/xfs/quota
parentef35e9255d4ed12522e836fbcec861e7306d794a (diff)
xfs: remove xfs_iput
xfs_iput is just a small wrapper for xfs_iunlock + IRELE. Having this out of line wrapper means the trace events in those two can't track their caller properly. So just remove the wrapper and opencode the unlock + rele in the few callers. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/quota')
-rw-r--r--fs/xfs/quota/xfs_qm.c6
-rw-r--r--fs/xfs/quota/xfs_qm_syscalls.c9
2 files changed, 10 insertions, 5 deletions
diff --git a/fs/xfs/quota/xfs_qm.c b/fs/xfs/quota/xfs_qm.c
index 7a33d65e2d28..9a92407109a1 100644
--- a/fs/xfs/quota/xfs_qm.c
+++ b/fs/xfs/quota/xfs_qm.c
@@ -1662,7 +1662,8 @@ xfs_qm_dqusage_adjust(
1662 * making us disable quotas for the file system. 1662 * making us disable quotas for the file system.
1663 */ 1663 */
1664 if ((error = xfs_qm_dqget_noattach(ip, &udqp, &gdqp))) { 1664 if ((error = xfs_qm_dqget_noattach(ip, &udqp, &gdqp))) {
1665 xfs_iput(ip, XFS_ILOCK_EXCL); 1665 xfs_iunlock(ip, XFS_ILOCK_EXCL);
1666 IRELE(ip);
1666 *res = BULKSTAT_RV_GIVEUP; 1667 *res = BULKSTAT_RV_GIVEUP;
1667 return error; 1668 return error;
1668 } 1669 }
@@ -1675,7 +1676,8 @@ xfs_qm_dqusage_adjust(
1675 * Walk thru the extent list and count the realtime blocks. 1676 * Walk thru the extent list and count the realtime blocks.
1676 */ 1677 */
1677 if ((error = xfs_qm_get_rtblks(ip, &rtblks))) { 1678 if ((error = xfs_qm_get_rtblks(ip, &rtblks))) {
1678 xfs_iput(ip, XFS_ILOCK_EXCL); 1679 xfs_iunlock(ip, XFS_ILOCK_EXCL);
1680 IRELE(ip);
1679 if (udqp) 1681 if (udqp)
1680 xfs_qm_dqput(udqp); 1682 xfs_qm_dqput(udqp);
1681 if (gdqp) 1683 if (gdqp)
diff --git a/fs/xfs/quota/xfs_qm_syscalls.c b/fs/xfs/quota/xfs_qm_syscalls.c
index 98dc6feef9f1..73f2b203975e 100644
--- a/fs/xfs/quota/xfs_qm_syscalls.c
+++ b/fs/xfs/quota/xfs_qm_syscalls.c
@@ -865,8 +865,9 @@ xfs_dqrele_inode(
865 xfs_qm_dqrele(ip->i_gdquot); 865 xfs_qm_dqrele(ip->i_gdquot);
866 ip->i_gdquot = NULL; 866 ip->i_gdquot = NULL;
867 } 867 }
868 xfs_iput(ip, XFS_ILOCK_EXCL); 868 xfs_iunlock(ip, XFS_ILOCK_EXCL);
869 869
870 IRELE(ip);
870 return 0; 871 return 0;
871} 872}
872 873
@@ -1133,7 +1134,8 @@ xfs_qm_internalqcheck_adjust(
1133 * of those now. 1134 * of those now.
1134 */ 1135 */
1135 if (! ipreleased) { 1136 if (! ipreleased) {
1136 xfs_iput(ip, lock_flags); 1137 xfs_iunlock(ip, lock_flags);
1138 IRELE(ip);
1137 ipreleased = B_TRUE; 1139 ipreleased = B_TRUE;
1138 goto again; 1140 goto again;
1139 } 1141 }
@@ -1150,7 +1152,8 @@ xfs_qm_internalqcheck_adjust(
1150 ASSERT(gd); 1152 ASSERT(gd);
1151 xfs_qm_internalqcheck_dqadjust(ip, gd); 1153 xfs_qm_internalqcheck_dqadjust(ip, gd);
1152 } 1154 }
1153 xfs_iput(ip, lock_flags); 1155 xfs_iunlock(ip, lock_flags);
1156 IRELE(ip);
1154 *res = BULKSTAT_RV_DIDONE; 1157 *res = BULKSTAT_RV_DIDONE;
1155 return (0); 1158 return (0);
1156} 1159}