diff options
author | 2023-05-25 20:53:56 +0800 | |
---|---|---|
committer | 2023-06-09 16:25:42 -0700 | |
commit | 75990f6459b9cf61a94e8a08d0f6a4aa0b8cf3b5 (patch) | |
tree | 9128d60e9afffd77e5b8db70e1afcadc9e93b9de /mm/compaction.c | |
parent | mm/vmalloc: dont purge usable blocks unnecessarily (diff) | |
download | linux-rng-75990f6459b9cf61a94e8a08d0f6a4aa0b8cf3b5.tar.xz linux-rng-75990f6459b9cf61a94e8a08d0f6a4aa0b8cf3b5.zip |
mm: compaction: drop the redundant page validation in update_pageblock_skip()
Patch series "Misc cleanups and improvements for compaction".
This series cantains some cleanups and improvements for compaction.
This patch (of 6):
The caller has validated the page before calling
update_pageblock_skip(), thus drop the redundant page validation in
update_pageblock_skip().
Link: https://lkml.kernel.org/r/5142e15b9295fe8c447dbb39b7907a20177a1413.1685018752.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/compaction.c')
-rw-r--r-- | mm/compaction.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index 261071a07681..83004c15715a 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -436,9 +436,6 @@ static void update_pageblock_skip(struct compact_control *cc, if (cc->no_set_skip_hint) return; - if (!page) - return; - set_pageblock_skip(page); /* Update where async and sync compaction should restart */ |