diff --git a/fs/dax.c b/fs/dax.c index c22eaf162f95c1456563b31a8362da9e531c9185..441280e15d5b8ee101f60cdc747a617d944bcecd 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -856,8 +856,10 @@ int dax_writeback_mapping_range(struct address_space *mapping, ret = dax_writeback_one(bdev, dax_dev, mapping, indices[i], pvec.pages[i]); - if (ret < 0) + if (ret < 0) { + mapping_set_error(mapping, ret); goto out; + } } } out: