diff options
author | Baolin Wang <[email protected]> | 2023-02-15 18:39:35 +0800 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-02-20 12:46:17 -0800 |
commit | f7f9c00dfafffd7a5a1a5685e2d874c64913e2ed (patch) | |
tree | c0a13cfa7a2606526ddce994d1ed3a1bf9d7989c /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | be2d57563822b7e00b2b16d9354637c4b6d6d5cc (diff) |
mm: change to return bool for isolate_lru_page()
The isolate_lru_page() can only return 0 or -EBUSY, and most users did not
care about the negative error of isolate_lru_page(), except one user in
add_page_for_migration(). So we can convert the isolate_lru_page() to
return a boolean value, which can help to make the code more clear when
checking the return value of isolate_lru_page().
Also convert all users' logic of checking the isolation state.
No functional changes intended.
Link: https://lkml.kernel.org/r/3074c1ab628d9dbf139b33f248a8bc253a3f95f0.1676424378.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>
Acked-by: Linus Torvalds <[email protected]>
Reviewed-by: SeongJae Park <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions