dax: check return value of dax_radix_entry()
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Wed, 9 Mar 2016 22:08:27 +0000 (14:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 9 Mar 2016 23:43:42 +0000 (15:43 -0800)
commit30f471fd88e0304bee2c17ef1a4651e705870817
tree0fe15e01cee010e6b4461f0da76092f68d1bba32
parent566e8dfd88d9e0d12873ca69c26e82c0af8479d8
dax: check return value of dax_radix_entry()

dax_pfn_mkwrite() previously wasn't checking the return value of the
call to dax_radix_entry(), which was a mistake.

Instead, capture this return value and return the appropriate VM_FAULT_
value.

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Matthew Wilcox <willy@linux.intel.com>
Cc: Dave Chinner <david@fromorbit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dax.c