mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
mm/vmscan: change the type of file from int to bool
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>
This commit is contained in:
parent
ab755bf424
commit
e321d7c934
1 changed files with 2 additions and 2 deletions
|
@ -1998,7 +1998,7 @@ static void shrink_active_list(unsigned long nr_to_scan,
|
||||||
LIST_HEAD(l_inactive);
|
LIST_HEAD(l_inactive);
|
||||||
unsigned nr_deactivate, nr_activate;
|
unsigned nr_deactivate, nr_activate;
|
||||||
unsigned nr_rotated = 0;
|
unsigned nr_rotated = 0;
|
||||||
int file = is_file_lru(lru);
|
bool file = is_file_lru(lru);
|
||||||
struct pglist_data *pgdat = lruvec_pgdat(lruvec);
|
struct pglist_data *pgdat = lruvec_pgdat(lruvec);
|
||||||
|
|
||||||
lru_add_drain();
|
lru_add_drain();
|
||||||
|
@ -2412,7 +2412,7 @@ static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc,
|
||||||
denominator = ap + fp;
|
denominator = ap + fp;
|
||||||
out:
|
out:
|
||||||
for_each_evictable_lru(lru) {
|
for_each_evictable_lru(lru) {
|
||||||
int file = is_file_lru(lru);
|
bool file = is_file_lru(lru);
|
||||||
unsigned long lruvec_size;
|
unsigned long lruvec_size;
|
||||||
unsigned long low, min;
|
unsigned long low, min;
|
||||||
unsigned long scan;
|
unsigned long scan;
|
||||||
|
|
Loading…
Reference in a new issue