ext4: fix ENOSPC handling in DAX page fault handler
authorJan Kara <jack@suse.cz>
Sun, 7 Jan 2018 21:41:01 +0000 (16:41 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 7 Jan 2018 21:41:01 +0000 (16:41 -0500)
commit22446423108f3687167c9fdc080e6f21dd784d18
tree38cad36cd241ce7ffdfd65058ebb128e643bb9b4
parentc0b24625979284dd212423320fe1c84fe244ed7f
ext4: fix ENOSPC handling in DAX page fault handler

When allocation of underlying block for a page fault fails, we fail the
fault with SIGBUS. However we may well hit ENOSPC just due to lots of
free blocks being held by the running / committing transaction. So
propagate the error from ext4_iomap_begin() and implement do standard
allocation retry loop in ext4_dax_huge_fault().

Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/file.c