diff options
| author | Yury Norov <[email protected]> | 2019-07-11 20:53:33 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2019-07-12 11:05:41 -0700 |
| commit | 9cf3a8d847bd08977dc168ed243ffbef3c456d88 (patch) | |
| tree | 7d5790a9f4c223ea58bf9b09befadaf821fe4428 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 966fede8e4be15bcc08e3c390080d3f9072a5367 (diff) | |
mm/slub.c: avoid double string traverse in kmem_cache_flags()
If ',' is not found, kmem_cache_flags() calls strlen() to find the end of
line. We can do it in a single pass using strchrnul().
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Yury Norov <[email protected]>
Acked-by: Aaron Tomlin <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions