On Tue, Jun 07, 2022 at 04:09:57AM +0000, Al Viro wrote: > diff --git a/include/linux/iomap.h b/include/linux/iomap.h > index e552097c67e0..95de0c771d37 100644 > --- a/include/linux/iomap.h > +++ b/include/linux/iomap.h > @@ -353,6 +353,8 @@ struct iomap_dio_ops { > */ > #define IOMAP_DIO_PARTIAL (1 << 2) > > +#define IOMAP_DIO_NOSYNC (1 << 3) > + > ssize_t iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, > const struct iomap_ops *ops, const struct iomap_dio_ops *dops, > unsigned int dio_flags, void *private, size_t done_before); You didn't like the little comment I added? +/* + * The caller will sync the write if needed; do not sync it within + * iomap_dio_rw. Overrides IOMAP_DIO_FORCE_WAIT. + */