[PATCH 4.9 23/42] btrfs: return value from btrfs_mark_extent_written() in case of error