dax: Report bytes remaining in dax_iomap_actor()
authorDan Williams <[email protected]>
Sat, 17 Mar 2018 00:36:44 +0000 (17:36 -0700)
committerDan Williams <[email protected]>
Wed, 23 May 2018 06:18:31 +0000 (23:18 -0700)
commita77d478642f12ade58fdfac335ae464df1944a1e
tree1d4597c7dc0e90d457d9fc49f57deef20b34d7bd
parentb3a9a0c36e1f7b9e2e6cf965c2bb973624f2b3b9
dax: Report bytes remaining in dax_iomap_actor()

In preparation for protecting the dax read(2) path from media errors
with copy_to_iter_mcsafe() (via dax_copy_to_iter()), convert the
implementation to report the bytes successfully transferred.

Cc: <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
fs/dax.c