Commit ee9955d
Christian Brauner
mm: use pidfd_get_task()
Instead of duplicating the same code in two places use the newly added
pidfd_get_task() helper. This fixes an (unimportant for now) bug where
PIDTYPE_PID is used whereas PIDTYPE_TGID should have been used.
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Cc: Vlastimil Babka <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: Matthew Bobrowski <[email protected]>
Cc: Alexander Duyck <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Minchan Kim <[email protected]>
Reviewed-by: Matthew Bobrowski <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>1 parent e9bdcdb commit ee9955d
2 files changed
+6
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1235 | 1235 | | |
1236 | 1236 | | |
1237 | 1237 | | |
1238 | | - | |
1239 | 1238 | | |
1240 | 1239 | | |
1241 | 1240 | | |
| |||
1250 | 1249 | | |
1251 | 1250 | | |
1252 | 1251 | | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
1256 | 1255 | | |
1257 | 1256 | | |
1258 | 1257 | | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | 1258 | | |
1266 | 1259 | | |
1267 | 1260 | | |
| |||
1301 | 1294 | | |
1302 | 1295 | | |
1303 | 1296 | | |
1304 | | - | |
1305 | | - | |
1306 | 1297 | | |
1307 | 1298 | | |
1308 | 1299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1151 | 1151 | | |
1152 | 1152 | | |
1153 | 1153 | | |
1154 | | - | |
1155 | 1154 | | |
1156 | 1155 | | |
1157 | 1156 | | |
1158 | 1157 | | |
1159 | 1158 | | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
1169 | 1162 | | |
1170 | 1163 | | |
1171 | 1164 | | |
| |||
1204 | 1197 | | |
1205 | 1198 | | |
1206 | 1199 | | |
1207 | | - | |
1208 | | - | |
1209 | 1200 | | |
1210 | 1201 | | |
1211 | 1202 | | |
| |||
0 commit comments