summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_qm.c
diff options
context:
space:
mode:
authorKaixu Xia <kaixuxia@tencent.com>2020-04-23 07:54:27 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2020-05-04 19:03:14 +0300
commitc140735bbb65daa89275a6b87f120c5feca99d6a (patch)
tree684fb0e9440ddbc2c44a03aff7cc1dfc20274feb /fs/xfs/xfs_qm.c
parent0d2d35a33ea77f34d534106e0b18a5797d3bbcf7 (diff)
downloadlinux-c140735bbb65daa89275a6b87f120c5feca99d6a.tar.xz
xfs: trace quota allocations for all quota types
The trace event xfs_dquot_dqalloc does not depend on the value uq, so remove the condition, and trace quota allocations for all quota types. Signed-off-by: Kaixu Xia <kaixuxia@tencent.com> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_qm.c')
-rw-r--r--fs/xfs/xfs_qm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c
index c225691fad15..6678baab37de 100644
--- a/fs/xfs/xfs_qm.c
+++ b/fs/xfs/xfs_qm.c
@@ -1730,8 +1730,7 @@ xfs_qm_vop_dqalloc(
pq = xfs_qm_dqhold(ip->i_pdquot);
}
}
- if (uq)
- trace_xfs_dquot_dqalloc(ip);
+ trace_xfs_dquot_dqalloc(ip);
xfs_iunlock(ip, lockflags);
if (O_udqpp)