]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Oct 2018 23:59:20 +0000 (16:59 -0700)
commitf44f3d0a9e9fbfb800a2a98c02bac5772baedf90
tree4cd0da1ca3f66621c32287c9e3c830f291e29093
parent7ebfc8f69a37bb28380c97819fd6437eec37dd8c
filesystem-dax: Fix use of zero page

commit b90ca5cc32f59bb214847c6855959702f00c6801 upstream.

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: 91d25ba8a6b0 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/dax.c