projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab755bf
)
mm/vmscan: change the type of file from int to bool
author
Hao Ge
<gehao@kylinos.cn>
Wed, 31 Jan 2024 10:38:02 +0000
(18:38 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Thu, 22 Feb 2024 18:24:50 +0000
(10:24 -0800)
Change the type of file from int to bool because is_file_lru return bool
Link:
https://lkml.kernel.org/r/20240131103802.122920-1-gehao@kylinos.cn
Signed-off-by: Hao Ge <gehao@kylinos.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c
patch
|
blob
|
history
diff --git
a/mm/vmscan.c
b/mm/vmscan.c
index 1f139830b26f6cf8c21ae408550fdfe4b6a7dfbb..8e52f8795d2028505e3773456bd324a265f11e6d 100644
(file)
--- a/
mm/vmscan.c
+++ b/
mm/vmscan.c
@@
-1998,7
+1998,7
@@
static void shrink_active_list(unsigned long nr_to_scan,
LIST_HEAD(l_inactive);
unsigned nr_deactivate, nr_activate;
unsigned nr_rotated = 0;
-
int
file = is_file_lru(lru);
+
bool
file = is_file_lru(lru);
struct pglist_data *pgdat = lruvec_pgdat(lruvec);
lru_add_drain();
@@
-2412,7
+2412,7
@@
static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc,
denominator = ap + fp;
out:
for_each_evictable_lru(lru) {
-
int
file = is_file_lru(lru);
+
bool
file = is_file_lru(lru);
unsigned long lruvec_size;
unsigned long low, min;
unsigned long scan;