Eric Sandeen 712d361d59 xfs: calculate correct offset in xfs_scrub_quota_item
It's only used for tracepoints so it's relatively harmless,
but the offset is calculated incorrectly in xfs_scrub_quota_item.

qi_dqperchunk is the nr. of dquots per "chunk" which we have
conveniently *cough* defined to always be 1 FSB.  Therefore
block_offset * qi_dqperchunk == first id in that chunk,
and so offset = id / qi_dqperchunk

id * dqperchunk is ... meaningless.

Fixes-coverity-id: 1423965
Fixes: c2fc338c ("xfs: scrub quota information")
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
2017-11-28 08:57:11 -08:00
..
2017-11-15 18:21:01 -08:00
2017-11-09 15:50:29 -08:00
2017-10-26 15:38:26 -07:00
2017-09-02 08:22:19 -07:00
2017-11-17 09:51:57 -08:00
2017-04-03 15:18:17 -07:00
2017-10-26 15:38:27 -07:00
2017-11-09 15:50:29 -08:00
2017-11-09 15:50:29 -08:00
2017-11-17 09:51:57 -08:00
2017-10-26 15:38:27 -07:00
2017-08-04 13:43:36 -07:00
2017-10-18 18:51:27 -04:00
2017-04-03 15:18:17 -07:00
2017-11-17 09:51:57 -08:00
2017-09-01 10:55:30 -07:00
2017-09-01 10:55:30 -07:00