diff options
author | Gu Zheng <[email protected]> | 2013-11-04 18:21:05 +0800 |
---|---|---|
committer | Ben Myers <[email protected]> | 2013-11-06 16:31:27 -0600 |
commit | 359d992bcd398273637cd9edde10afca953783c4 (patch) | |
tree | bfe6012116dc8b8d59d16bc517d0c94fa24abae9 /tools/perf/util/trace-event-scripting.c | |
parent | d123031a5673cd38a85ce66cc07243dfe5f424c9 (diff) |
xfs: simplify kmem_{zone_}zalloc
Introduce flag KM_ZERO which is used to alloc zeroed entry, and convert
kmem_{zone_}zalloc to call kmem_{zone_}alloc() with KM_ZERO directly,
in order to avoid the setting to zero step.
And following Dave's suggestion, make kmem_{zone_}zalloc static inline
into kmem.h as they're now just a simple wrapper.
V2:
Make kmem_{zone_}zalloc static inline into kmem.h as Dave suggested.
Signed-off-by: Gu Zheng <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Ben Myers <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions