summaryrefslogtreecommitdiff
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorKairui Song <kasong@tencent.com>2022-12-19 21:58:39 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-01-19 04:12:45 +0300
commit16ba391e9c6bc26e6f0c950f2117f57b8e542d71 (patch)
tree8a4aafd9f2f6e0a05567240a26fe974a9b493b68 /mm/shmem.c
parent18ad72f5b7186336646182b17e0654bf907b39e6 (diff)
downloadlinux-16ba391e9c6bc26e6f0c950f2117f57b8e542d71.tar.xz
swap: fold swap_ra_clamp_pfn into swap_ra_info
This makes the code cleaner. This helper is made of only two line of self explanational code and not reused anywhere else. And this actually make the compiled object smaller by a bit. bloat-o-meter results on x86_64 of mm/swap_state.o: add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-35 (-35) Function old new delta swap_ra_info.constprop 512 477 -35 Total: Before=8388, After=8353, chg -0.42% Link: https://lkml.kernel.org/r/20221219185840.25441-4-ryncsn@gmail.com Signed-off-by: Kairui Song <kasong@tencent.com> Reviewed-by: "Huang, Ying" <ying.huang@intel.com> Cc: David Hildenbrand <david@redhat.com> Cc: Hugh Dickins <hughd@google.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions