dax: Remove zeroing from dax_io()
authorJan Kara <jack@suse.cz>
Wed, 11 May 2016 09:58:51 +0000 (11:58 +0200)
committerVishal Verma <vishal.l.verma@intel.com>
Tue, 17 May 2016 06:44:09 +0000 (00:44 -0600)
commit069c77bc9eaee70fa9ecbd942372b1693b8cdeb0
treebfaebbeaf789904038ea2b24bf61f0f02cd411b1
parent2b10945c532c165a824f541df76a15ed0be04d78
dax: Remove zeroing from dax_io()

All the filesystems are now zeroing blocks themselves for DAX IO to avoid
races between dax_io() and dax_fault(). Remove the zeroing code from
dax_io() and add warning to catch the case when somebody unexpectedly
returns new or unwritten buffer.

Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
fs/dax.c