Commit e664c2c
mm/zsmalloc: use memcpy_from/to_page whereever possible
As part of "zsmalloc: replace kmap_atomic with kmap_local_page" [1] we
replaced kmap/kunmap_atomic() with kmap_local_page()/kunmap_local().
But later it was found that some of the code could be replaced with
already available apis in highmem.h, such as
memcpy_from_page()/memcpy_to_page().
Also, update the comments with correct api naming.
[1] https://lkml.kernel.org/r/20241001175358.12970-1-quic_pintu@quicinc.com
Link: https://lkml.kernel.org/r/20241010175143.27262-1-quic_pintu@quicinc.com
Signed-off-by: Pintu Kumar <quic_pintu@quicinc.com>
Suggested-by: Matthew Wilcox <willy@infradead.org>
Suggested-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Joe Perches <joe@perches.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Pintu Agarwal <pintu.ping@gmail.com>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 91d0ec8 commit e664c2c
1 file changed
+13
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
1046 | 1046 | | |
1047 | 1047 | | |
1048 | 1048 | | |
1049 | | - | |
1050 | | - | |
| 1049 | + | |
1051 | 1050 | | |
1052 | 1051 | | |
1053 | | - | |
| 1052 | + | |
1054 | 1053 | | |
1055 | 1054 | | |
1056 | 1055 | | |
| |||
1061 | 1060 | | |
1062 | 1061 | | |
1063 | 1062 | | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
| 1063 | + | |
| 1064 | + | |
1070 | 1065 | | |
1071 | 1066 | | |
1072 | 1067 | | |
1073 | 1068 | | |
1074 | 1069 | | |
1075 | 1070 | | |
1076 | 1071 | | |
1077 | | - | |
1078 | | - | |
| 1072 | + | |
1079 | 1073 | | |
1080 | 1074 | | |
1081 | 1075 | | |
| |||
1091 | 1085 | | |
1092 | 1086 | | |
1093 | 1087 | | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
| 1088 | + | |
| 1089 | + | |
1100 | 1090 | | |
1101 | 1091 | | |
1102 | | - | |
| 1092 | + | |
1103 | 1093 | | |
1104 | 1094 | | |
1105 | 1095 | | |
| |||
1511 | 1501 | | |
1512 | 1502 | | |
1513 | 1503 | | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
1518 | 1508 | | |
1519 | 1509 | | |
1520 | 1510 | | |
| |||
0 commit comments