summaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@linux.alibaba.com>2020-08-07 08:25:44 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-08-07 20:33:29 +0200
commit399b795b7a80bf703aae56fa0b66fd1949ca1fd9 (patch)
treef74f6ecb60872f96763ca59324c3f074ed0d0531 /mm/filemap.c
parentmm/page_alloc.c: replace the definition of NR_MIGRATETYPE_BITS with PB_migrat... (diff)
downloadlinux-399b795b7a80bf703aae56fa0b66fd1949ca1fd9.tar.xz
linux-399b795b7a80bf703aae56fa0b66fd1949ca1fd9.zip
mm/page_alloc.c: extract the common part in pfn_to_bitidx()
The return value calculation is the same both for SPARSEMEM or not. Just take it out. Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Mel Gorman <mgorman@suse.de> Link: http://lkml.kernel.org/r/20200623124201.8199-2-richard.weiyang@linux.alibaba.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions