> -----Original Message----- > From: Linux-nvdimm [mailto:linux-nvdimm-bounces@xxxxxxxxxxxx] On > Behalf Of Christoph Hellwig > Sent: Friday, September 09, 2016 11:35 AM > Subject: [PATCH 06/10] dax: provide an iomap based fault handler > ... > diff --git a/fs/dax.c b/fs/dax.c > @@ -1343,4 +1343,117 @@ iomap_dax_rw(struct kiocb *iocb, struct ... > + default: > + WARN_ON_ONCE(1); > + error = -EIO; > + } > + > + /* Filesystem should not return unwritten buffers to us! */ > + error = dax_insert_mapping(mapping, iomap.bdev, sector, PAGE_SIZE, > + &entry, vma, vmf); That -EIO value would be immediately overwritten. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html