diff options
author | Eric Sandeen <[email protected]> | 2016-11-08 12:59:42 +1100 |
---|---|---|
committer | Dave Chinner <[email protected]> | 2016-11-08 12:59:42 +1100 |
commit | 5d829300bee000980a09ac2ccb761cb25867b67c (patch) | |
tree | 425daf3660774296f46973084bf7d8362b45723f /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 4dfce57db6354603641132fac3c887614e3ebe81 (diff) |
xfs: provide helper for counting extents from if_bytes
The open-coded pattern:
ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t)
is all over the xfs code; provide a new helper
xfs_iext_count(ifp) to count the number of inline extents
in an inode fork.
[dchinner: pick up several missed conversions]
Signed-off-by: Eric Sandeen <[email protected]>
Reviewed-by: Brian Foster <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions