commit | 2a6772ebf05a9b6bc450e42bbb459f6327f68aca | [log] [tgz] |
---|---|---|
author | Alexey Dobriyan <adobriyan@gmail.com> | Tue Feb 28 18:34:38 2023 +0300 |
committer | Andrew Morton <akpm@linux-foundation.org> | Sat Apr 08 13:45:37 2023 -0700 |
tree | 76fe43ab8ac8adac47b9af33aca8edeb04707a87 | |
parent | 6d51363d53db4f5f11a13509ef28e917b97eb2b3 [diff] |
mm: uninline kstrdup() gcc inlines kstrdup into kstrdup_const() but it can very efficiently tail call into it instead: $ ./scripts/bloat-o-meter ../vmlinux-000 ../obj/vmlinux add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-84 (-84) Function old new delta kstrdup_const 119 35 -84 Link: https://lkml.kernel.org/r/Y/4fDlbIhTLNLFHz@p183 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>