diff options
author | Edward Cree <ecree@solarflare.com> | 2013-09-27 18:52:49 +0100 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-10-04 23:31:51 +0100 |
commit | 4bae913bd372aab90fdbd91e7e5fb841a2a0dc15 (patch) | |
tree | 182cf2705eb6349cb1fea0cc69dd2cd446b0be64 /fs/gfs2/rgrp.c | |
parent | 87648cc925222f16c3bd119af8ae8e8fb2f3fe1d (diff) |
sfc: Refactor EF10 stat mask code to allow for more conditional stats
Previously, efx_ef10_stat_mask returned a static const unsigned long[], which
meant that each possible mask had to be declared statically with
STAT_MASK_BITMAP. Since adding a condition would double the size of the
decision tree, we now create the bitmask dynamically.
To do this, we have two functions efx_ef10_raw_stat_mask, which returns a u64,
and efx_ef10_get_stat_mask, which fills in an unsigned long * argument.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'fs/gfs2/rgrp.c')
0 files changed, 0 insertions, 0 deletions