Re: [PATCH] mm/slub: avoid double string traverse in kmem_cache_flags()

2019-05-14 Thread Aaron Tomlin
On Tue 2019-04-30 22:31 -0700, Yury Norov wrote: > 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(). > > Signed-off-by: Yury Norov > --- > mm/slub.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > di

Re: [PATCH] mm/slub: avoid double string traverse in kmem_cache_flags()

2019-05-07 Thread Yury Norov
On Tue, Apr 30, 2019 at 10:31:11PM -0700, Yury Norov wrote: > 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(). Ping? > Signed-off-by: Yury Norov > --- > mm/slub.c | 4 +--- > 1 file changed, 1 insertion(+), 3 dele