Repository navigation
Commit e644c10
mm/compaction: cleanup isolate_freepages()
commit c96b9e5 upstream.
isolate_freepages() is currently somewhat hard to follow thanks to many
looks like it is related to the 'low_pfn' variable, but in fact it is not.
This patch renames the 'high_pfn' variable to a hopefully less confusing name,
and slightly changes its handling without a functional change. A comment made
obsolete by recent changes is also updated.
[akpm@linux-foundation.org: comment fixes, per Minchan]
[iamjoonsoo.kim@lge.com: cleanups]
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Dongjun Shin <d.j.shin@samsung.com>
Cc: Sunghwan Yun <sunghwan.yun@samsung.com>
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>1 parent 87db4a8 commit e644c10
1 file changed
Lines changed: 27 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
667 | 670 | | |
668 | 671 | | |
669 | 672 | | |
670 | 673 | | |
671 | 674 | | |
672 | 675 | | |
673 | 676 | | |
674 | | - | |
675 | | - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
676 | 681 | | |
677 | 682 | | |
678 | 683 | | |
679 | | - | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
680 | 687 | | |
681 | 688 | | |
682 | 689 | | |
683 | | - | |
684 | | - | |
685 | | - | |
| 690 | + | |
| 691 | + | |
686 | 692 | | |
687 | | - | |
688 | | - | |
689 | | - | |
| 693 | + | |
690 | 694 | | |
691 | 695 | | |
692 | 696 | | |
693 | 697 | | |
694 | 698 | | |
695 | 699 | | |
696 | | - | |
697 | | - | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
698 | 703 | | |
699 | | - | |
700 | 704 | | |
701 | 705 | | |
702 | 706 | | |
| |||
705 | 709 | | |
706 | 710 | | |
707 | 711 | | |
708 | | - | |
| 712 | + | |
709 | 713 | | |
710 | 714 | | |
711 | 715 | | |
| |||
715 | 719 | | |
716 | 720 | | |
717 | 721 | | |
718 | | - | |
| 722 | + | |
719 | 723 | | |
720 | 724 | | |
721 | 725 | | |
| |||
728 | 732 | | |
729 | 733 | | |
730 | 734 | | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
| 735 | + | |
| 736 | + | |
739 | 737 | | |
740 | 738 | | |
741 | 739 | | |
742 | 740 | | |
743 | 741 | | |
744 | 742 | | |
745 | 743 | | |
746 | | - | |
| 744 | + | |
747 | 745 | | |
748 | | - | |
| 746 | + | |
749 | 747 | | |
750 | 748 | | |
751 | 749 | | |
| |||
756 | 754 | | |
757 | 755 | | |
758 | 756 | | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
763 | 761 | | |
764 | 762 | | |
765 | 763 | | |
| |||
0 commit comments