]> git.baikalelectronics.ru Git - kernel.git/commit
dax: add dax_iomap_sector() helper function
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Tue, 8 Nov 2016 00:33:09 +0000 (11:33 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 8 Nov 2016 00:33:09 +0000 (11:33 +1100)
commit9e2f3af0bdd5f6308acf922997977a5b74e5646d
tree12ad6c237dd92c3e903bb3b433257d0ea2fdfe27
parent3a8a5b8a11065692f67d2036c694da8dca18c722
dax: add dax_iomap_sector() helper function

To be able to correctly calculate the sector from a file position and a
struct iomap there is a complex little bit of logic that currently happens
in both dax_iomap_actor() and dax_iomap_fault().  This will need to be
repeated yet again in the DAX PMD fault handler when it is added, so break
it out into a helper function.

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/dax.c