diff options
author | Mike Rapoport <[email protected]> | 2021-04-09 13:27:23 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-04-09 14:54:23 -0700 |
commit | a3a8833dffb7e7329c2586b8bfc531adb503f123 (patch) | |
tree | 7fadf4a4abab241df784c017e8b9bb7efc2064c7 /include/linux | |
parent | d3378e86d1822b6d0bebfbc18a8348691c05dfa0 (diff) |
nds32: flush_dcache_page: use page_mapping_file to avoid races with swapoff
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 possibility of a race
there.
Replace page_mapping() with page_mapping_file() in nds32 implementation
of flush_dcache_page().
Link: https://lkml.kernel.org/r/[email protected]
Fixes: cb9f753a3731 ("mm: fix races between swapoff and flush dcache")
Signed-off-by: Mike Rapoport <[email protected]>
Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>
Acked-by: Greentime Hu <[email protected]>
Cc: Huang Ying <[email protected]>
Cc: Nick Hu <[email protected]>
Cc: Vincent Chen <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions