dax: use linear_page_index()
authorMatthew Wilcox <willy@linux.intel.com>
Tue, 8 Sep 2015 21:59:39 +0000 (14:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 8 Sep 2015 22:35:28 +0000 (15:35 -0700)
commit3fdd1b479dbc03347e98f904f54133a9cef5521f
tree51a2c593661f4fa8272cc6882778f143a5eead17
parent73a6ec47f68787df1b41869def52915da2f4a6b7
dax: use linear_page_index()

I was basically open-coding it (thanks to copying code from do_fault()
which probably also needs to be fixed).

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dax.c