Re: [PATCH] nds32: flush_dcache_page: use page_mapping_file to avoid races with swapoff

2021-03-31 Thread Greentime Hu
Greentime Hu 於 2021年3月31日 週三 下午3:30寫道: > > Matthew Wilcox 於 2021年3月31日 週三 上午2:14寫道: > > > > On Tue, Mar 30, 2021 at 08:51:26PM +0300, Mike Rapoport wrote: > > > From: Mike Rapoport > > > > > > Commit cb9f753a3731 ("mm: fix races between swapoff and flush dcache") > > > updated flush_dcache_page

Re: [PATCH] nds32: flush_dcache_page: use page_mapping_file to avoid races with swapoff

2021-03-31 Thread Greentime Hu
Matthew Wilcox 於 2021年3月31日 週三 上午2:14寫道: > > On Tue, Mar 30, 2021 at 08:51:26PM +0300, Mike Rapoport wrote: > > From: Mike Rapoport > > > > Commit cb9f753a3731 ("mm: fix races between swapoff and flush dcache") > > updated flush_dcache_page implementations on several architectures to use > > page

Re: [PATCH] nds32: flush_dcache_page: use page_mapping_file to avoid races with swapoff

2021-03-30 Thread Matthew Wilcox
On Tue, Mar 30, 2021 at 08:51:26PM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > Commit cb9f753a3731 ("mm: fix races between swapoff and flush dcache") > updated flush_dcache_page implementations on several architectures to use > page_mapping_file() in order to avoid races between page_ma

[PATCH] nds32: flush_dcache_page: use page_mapping_file to avoid races with swapoff

2021-03-30 Thread Mike Rapoport
From: Mike Rapoport Commit cb9f753a3731 ("mm: fix races between swapoff and flush dcache") updated flush_dcache_page implementations on several architectures to use page_mapping_file() in order to avoid races between page_mapping() and swapoff(). This update missed arch/nds32 and there is a poss