Re: [PATCH v2 1/4] mm: Introduce and use mapping_empty

2021-01-21 Thread Matthew Wilcox
On Thu, Jan 21, 2021 at 03:42:31PM -0500, Johannes Weiner wrote: > On Mon, Oct 26, 2020 at 03:18:46PM +, Matthew Wilcox (Oracle) wrote: > > Instead of checking the two counters (nrpages and nrexceptional), we > > can just check whether i_pages is empty. > > > > Signed-off-by: Matthew Wilcox

Re: [PATCH v2 1/4] mm: Introduce and use mapping_empty

2021-01-21 Thread Johannes Weiner
On Mon, Oct 26, 2020 at 03:18:46PM +, Matthew Wilcox (Oracle) wrote: > Instead of checking the two counters (nrpages and nrexceptional), we > can just check whether i_pages is empty. > > Signed-off-by: Matthew Wilcox (Oracle) > Tested-by: Vishal Verma Acked-by: Johannes Weiner Heh, I was

[PATCH v2 1/4] mm: Introduce and use mapping_empty

2020-10-26 Thread Matthew Wilcox (Oracle)
Instead of checking the two counters (nrpages and nrexceptional), we can just check whether i_pages is empty. Signed-off-by: Matthew Wilcox (Oracle) Tested-by: Vishal Verma --- fs/block_dev.c | 2 +- fs/dax.c| 2 +- fs/gfs2/glock.c | 3 +--