]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
dax: Remove pointless writeback from dax_do_io()
authorJan Kara <jack@suse.cz>
Wed, 11 May 2016 09:58:52 +0000 (11:58 +0200)
committerVishal Verma <vishal.l.verma@intel.com>
Tue, 17 May 2016 06:44:09 +0000 (00:44 -0600)
commitc3d98e39d5b37320b15f227686575d58f676e6ef
tree2e221bb403db75da6a40c70919f82ad492315e53
parent069c77bc9eaee70fa9ecbd942372b1693b8cdeb0
dax: Remove pointless writeback from dax_do_io()

dax_do_io() is calling filemap_write_and_wait() if DIO_LOCKING flags is
set. Presumably this was copied over from direct IO code. However DAX
inodes have no pagecache pages to write so the call is pointless. Remove
it.

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