]> git.baikalelectronics.ru Git - kernel.git/commit
mm: remove unused inline functions from include/linux/mm_inline.h
authorGaosheng Cui <cuigaosheng1@huawei.com>
Thu, 22 Sep 2022 11:09:35 +0000 (19:09 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:35 +0000 (14:03 -0700)
commitd9b5257aa3a59b939fd05863c9e803d6525c0078
tree1d16a7bc8db29bf4ae9eaca36f01e0e76c20c6d4
parentd780b149bc40c18fa823aeea65a70a5afd84a2b9
mm: remove unused inline functions from include/linux/mm_inline.h

Remove the following unused inline functions from mm_inline.h:

1.  All uses of add_page_to_lru_list_tail() have been removed since
   commit 19f9f09a5fbc ("mm/swap: convert lru_deactivate_file to a
   folio_batch"), and it can be replaced by lruvec_add_folio_tail().

2.  All uses of __clear_page_lru_flags() have been removed since commit
   c49060e7b90c ("mm/swap: convert __page_cache_release() to use a
   folio"), and it can be replaced by __folio_clear_lru_flags().

They are useless, so remove them.

Link: https://lkml.kernel.org/r/20220922110935.1495099-1-cuigaosheng1@huawei.com
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm_inline.h