]> git.baikalelectronics.ru Git - kernel.git/commit
mm/util.c: reduce mem_dump_obj() object size
authorJoe Perches <joe@perches.com>
Wed, 5 May 2021 01:38:32 +0000 (18:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 5 May 2021 18:27:25 +0000 (11:27 -0700)
commit4dba5a0d5229440780c529b6c8cbc663b4d227e4
tree35c90cb8af6f3e0f61f49b9900cf0a2f3888f3b1
parent0fa4f768bb7630f904d4c5981d939ba31b135f5a
mm/util.c: reduce mem_dump_obj() object size

Simplify the code by using a temporary and reduce the object size by
using a single call to pr_cont().  Reverse a test and unindent a block
too.

$ size mm/util.o* (defconfig x86-64)
   text    data     bss     dec     hex filename
   7419     372      40    7831    1e97 mm/util.o.new
   7477     372      40    7889    1ed1 mm/util.o.old

Link: https://lkml.kernel.org/r/a6e105886338f68afd35f7a13d73bcf06b0cc732.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/util.c