forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commite6e8871
mm: optimise madvise WILLNEED
Instead of calling find_get_entry() for every page index, use an XArrayiterator to skip over NULL entries, and avoid calling get_page(),because we only want the swap entries.[willy@infradead.org: fix LTP soft lockups] Link:https://lkml.kernel.org/r/20200914165032.GS6583@casper.infradead.orgSigned-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Acked-by: Johannes Weiner <hannes@cmpxchg.org>Cc: Alexey Dobriyan <adobriyan@gmail.com>Cc: Chris Wilson <chris@chris-wilson.co.uk>Cc: Huang Ying <ying.huang@intel.com>Cc: Hugh Dickins <hughd@google.com>Cc: Jani Nikula <jani.nikula@linux.intel.com>Cc: Matthew Auld <matthew.auld@intel.com>Cc: William Kucharski <william.kucharski@oracle.com>Cc: Qian Cai <cai@redhat.com>Link:https://lkml.kernel.org/r/20200910183318.20139-4-willy@infradead.orgSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parentf5df863 commite6e8871
1 file changed
+12
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
| 228 | + | |
228 | 229 | | |
229 | | - | |
230 | 230 | | |
231 | | - | |
232 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
233 | 234 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 235 | + | |
238 | 236 | | |
239 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
245 | 247 | | |
| 248 | + | |
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
| |||
0 commit comments
Comments
(0)