Commit bb3ca38
hv_balloon: Use kernel macros to simplify open coded sequences
Code sequences equivalent to ALIGN(), ALIGN_DOWN(), and umin() are
currently open coded. Change these to use the kernel macro to
improve code clarity. ALIGN() and ALIGN_DOWN() require the
alignment value to be a power of 2, which is the case here.
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/20240503154312.142466-1-mhklinux@outlook.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20240503154312.142466-1-mhklinux@outlook.com>1 parent 1613e60 commit bb3ca38
1 file changed
Lines changed: 8 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
| 732 | + | |
| 733 | + | |
741 | 734 | | |
742 | 735 | | |
743 | 736 | | |
| |||
800 | 793 | | |
801 | 794 | | |
802 | 795 | | |
803 | | - | |
| 796 | + | |
804 | 797 | | |
805 | 798 | | |
806 | 799 | | |
| |||
836 | 829 | | |
837 | 830 | | |
838 | 831 | | |
| 832 | + | |
839 | 833 | | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
| 834 | + | |
848 | 835 | | |
849 | 836 | | |
850 | 837 | | |
| |||
915 | 902 | | |
916 | 903 | | |
917 | 904 | | |
918 | | - | |
919 | | - | |
920 | | - | |
| 905 | + | |
921 | 906 | | |
922 | 907 | | |
923 | 908 | | |
| |||
1011 | 996 | | |
1012 | 997 | | |
1013 | 998 | | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | 999 | | |
1018 | 1000 | | |
1019 | 1001 | | |
1020 | 1002 | | |
1021 | 1003 | | |
1022 | 1004 | | |
1023 | 1005 | | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
| 1006 | + | |
| 1007 | + | |
1032 | 1008 | | |
1033 | 1009 | | |
1034 | 1010 | | |
| |||
0 commit comments