diff options
author | Aurelien Aptel <[email protected]> | 2021-04-09 16:31:37 +0200 |
---|---|---|
committer | Steve French <[email protected]> | 2021-04-25 16:28:22 -0500 |
commit | b7fd0fa0eac701b5eab07d3994a2973801035c0b (patch) | |
tree | 2565c590aad6440a8dc7e6e367e88c8acc6f6075 /tools/perf/scripts/python/syscall-counts.py | |
parent | bb9cad1b49e3123fd7691236be318d4a14e206fe (diff) |
cifs: simplify SWN code with dummy funcs instead of ifdefs
This commit doesn't change the logic of SWN.
Add dummy implementation of SWN functions when SWN is disabled instead
of using ifdef sections.
The dummy functions get optimized out, this leads to clearer code and
compile time type-checking regardless of config options with no
runtime penalty.
Leave the simple ifdefs section as-is.
A single bitfield (bool foo:1) on its own will use up one int. Move
tcon->use_witness out of ifdefs with the other tcon bitfields.
Signed-off-by: Aurelien Aptel <[email protected]>
Reviewed-by: Samuel Cabrero <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions