summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2016-05-19 17:11:48 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-19 19:12:14 -0700
commit06b6640a3902d6d50c1bb4fb1f29a46b207dbf08 (patch)
tree9cfd71e35519fd5b073e7a03d1f487bf12df2131 /block
parente4c5800a3991f0c6a766983535dfc10d51802cf6 (diff)
downloadop-kernel-dev-06b6640a3902d6d50c1bb4fb1f29a46b207dbf08.zip
op-kernel-dev-06b6640a3902d6d50c1bb4fb1f29a46b207dbf08.tar.gz
mm, compaction: wrap calculating first and last pfn of pageblock
Compaction code has accumulated numerous instances of manual calculations of the first (inclusive) and last (exclusive) pfn of a pageblock (or a smaller block of given order), given a pfn within the pageblock. Wrap these calculations by introducing pageblock_start_pfn(pfn) and pageblock_end_pfn(pfn) macros. [vbabka@suse.cz: fix crash in get_pfnblock_flags_mask() from isolate_freepages():] Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Rik van Riel <riel@redhat.com> Cc: David Rientjes <rientjes@google.com> Cc: Minchan Kim <minchan@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud