Re: [PATCH v17 18/21] mm/lru: introduce the relock_page_lruvec function

2020-07-31 Thread Alexander Duyck
On Wed, Jul 29, 2020 at 11:08 PM Alex Shi wrote: > > > > 在 2020/7/30 上午1:52, Alexander Duyck 写道: > >> + rcu_read_lock(); > >> + locked = mem_cgroup_page_lruvec(page, pgdat) == locked_lruvec; > >> + rcu_read_unlock(); > >> + > >> + if (locked) > >> + return

Re: [PATCH v17 18/21] mm/lru: introduce the relock_page_lruvec function

2020-07-30 Thread Alex Shi
在 2020/7/30 上午1:52, Alexander Duyck 写道: >> + rcu_read_lock(); >> + locked = mem_cgroup_page_lruvec(page, pgdat) == locked_lruvec; >> + rcu_read_unlock(); >> + >> + if (locked) >> + return locked_lruvec; >> + >> + if (locked_lruvec) >> +

Re: [PATCH v17 18/21] mm/lru: introduce the relock_page_lruvec function

2020-07-29 Thread Alexander Duyck
On Sat, Jul 25, 2020 at 6:00 AM Alex Shi wrote: > > Use this new function to replace repeated same code, no func change. > > Signed-off-by: Alex Shi > Cc: Johannes Weiner > Cc: Andrew Morton > Cc: Thomas Gleixner > Cc: Andrey Ryabinin > Cc: Matthew Wilcox > Cc: Mel Gorman > Cc: Konstantin

[PATCH v17 18/21] mm/lru: introduce the relock_page_lruvec function

2020-07-25 Thread Alex Shi
Use this new function to replace repeated same code, no func change. Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Andrew Morton Cc: Thomas Gleixner Cc: Andrey Ryabinin Cc: Matthew Wilcox Cc: Mel Gorman Cc: Konstantin Khlebnikov Cc: Hugh Dickins Cc: Tejun Heo Cc: