]> git.baikalelectronics.ru Git - kernel.git/commit
filesystem-dax: Fix use of zero page
authorMatthew Wilcox <willy@infradead.org>
Wed, 12 Sep 2018 04:27:44 +0000 (21:27 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 12 Sep 2018 04:27:44 +0000 (21:27 -0700)
commitacd0d3d2fc0827c691697f80cab15e6a0dc3385d
treee6161ec72ec48d6011909d42f560a86e1814a58f
parent98d8ef8d1216385375417e11a07c1df549521ab0
filesystem-dax: Fix use of zero page

Use my_zero_pfn instead of ZERO_PAGE(), and pass the vaddr to it instead
of zero so it works on MIPS and s390 who reference the vaddr to select a
zero page.

Cc: <stable@vger.kernel.org>
Fixes: b4adf5e326f4 ("dax: use common 4k zero page for dax mmap reads")
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/dax.c