]> git.baikalelectronics.ru Git - 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)
commit9d34fcf2efd37373b3e43829ee927f264ab8dfb0
tree2e221bb403db75da6a40c70919f82ad492315e53
parent4d2d76dda45fa59cee502c705b5983f97a81b217
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