]> git.baikalelectronics.ru Git - kernel.git/commit
mm: move page_mapping_file to pagemap.h
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 30 Apr 2021 05:55:35 +0000 (22:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Apr 2021 18:20:37 +0000 (11:20 -0700)
commita8e68666fc25c406c317256cb9fc368710a2958c
tree89b3f84e1e4a3b6285028dae48cef5eac7dc6f61
parent43cf1d3ba3e57903b7ec5788f33215b29ccad9db
mm: move page_mapping_file to pagemap.h

page_mapping_file() is only used by some architectures, and then it
is usually only used in one place.  Make it a static inline function
so other architectures don't have to carry this dead code.

Link: https://lkml.kernel.org/r/20210317123011.350118-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: Huang Ying <ying.huang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
12 files changed:
arch/arm/mm/copypage-v4mc.c
arch/arm/mm/copypage-v6.c
arch/arm/mm/copypage-xscale.c
arch/csky/abiv1/cacheflush.c
arch/mips/mm/cache.c
arch/nios2/mm/cacheflush.c
arch/sh/mm/cache-sh4.c
arch/sh/mm/cache-sh7705.c
arch/sparc/mm/tlb.c
include/linux/mm.h
include/linux/pagemap.h
mm/util.c