]> git.baikalelectronics.ru Git - kernel.git/commit
dax: account DAX entries as nrpages
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 5 May 2021 01:32:51 +0000 (18:32 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 5 May 2021 18:27:19 +0000 (11:27 -0700)
commit2b5cd1f7cff263b7c060c7f0c3569dbf8e252eb5
tree9d7a7a9b90996f8fde414ef87b8a0ccf03b17bc8
parent442bcd5225fe27b2e96e140f059336c3e9f55cc1
dax: account DAX entries as nrpages

Simplify mapping_needs_writeback() by accounting DAX entries as pages
instead of exceptional entries.

Link: https://lkml.kernel.org/r/20201026151849.24232-4-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Tested-by: Vishal Verma <vishal.l.verma@intel.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dax.c
mm/filemap.c