diff options
author | Ross Zwisler <ross.zwisler@linux.intel.com> | 2016-11-08 11:33:09 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-11-08 11:33:09 +1100 |
commit | 333ccc978e1e09af2690e459b6f97d8e91cc01fa (patch) | |
tree | 12ad6c237dd92c3e903bb3b433257d0ea2fdfe27 /net/compat.c | |
parent | 11c59c92f44d9272db7655a462608658a6d95013 (diff) | |
download | linux-stable-333ccc978e1e09af2690e459b6f97d8e91cc01fa.tar.gz linux-stable-333ccc978e1e09af2690e459b6f97d8e91cc01fa.tar.bz2 linux-stable-333ccc978e1e09af2690e459b6f97d8e91cc01fa.zip |
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>
Diffstat (limited to 'net/compat.c')
0 files changed, 0 insertions, 0 deletions