filesystem-dax: Do not request kaddr and pfn when not required
authorHuaisheng Ye <yehs1@lenovo.com>
Mon, 30 Jul 2018 07:15:48 +0000 (15:15 +0800)
committerDave Jiang <dave.jiang@intel.com>
Mon, 30 Jul 2018 16:40:42 +0000 (09:40 -0700)
commit86ed913b0e826da56aa780a3f5cfbbb02ed674a8
treeb8cc8e661e7aaefacd299fc92819ab5a3c4b81bc
parentf742267ae91faf241d2892878208dffc586ffe06
filesystem-dax: Do not request kaddr and pfn when not required

Some functions within fs/dax don't need to get local pointer kaddr
or variable pfn from direct_access. Using NULL instead of having to
pass in useless pointer or variable that caller then just throw away.

Signed-off-by: Huaisheng Ye <yehs1@lenovo.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
fs/dax.c