Re: [PATCH 01/13] mm: use add_page_to_lru_list()

2020-09-18 Thread Yu Zhao
On Fri, Sep 18, 2020 at 09:32:40AM +0200, Michal Hocko wrote: > On Thu 17-09-20 21:00:39, Yu Zhao wrote: > > This patch replaces the only open-coded lru list addition with > > add_page_to_lru_list(). > > > > Before this patch, we have: > > update_lru_size() > > list_move() > > > > After t

Re: [PATCH 01/13] mm: use add_page_to_lru_list()

2020-09-18 Thread Michal Hocko
On Thu 17-09-20 21:00:39, Yu Zhao wrote: > This patch replaces the only open-coded lru list addition with > add_page_to_lru_list(). > > Before this patch, we have: > update_lru_size() > list_move() > > After this patch, we have: > list_del() > add_page_to_lru_list() >

[PATCH 01/13] mm: use add_page_to_lru_list()

2020-09-17 Thread Yu Zhao
This patch replaces the only open-coded lru list addition with add_page_to_lru_list(). Before this patch, we have: update_lru_size() list_move() After this patch, we have: list_del() add_page_to_lru_list() update_lru_size() list_add(