Re: [PATCHv8 5/6] io_uring: enable per-io hinting capability

Christoph Hellwig
2024-10-18T06:00:10Z

Same hint vs write stream thing here as well.

> + if (ddir == ITER_SOURCE &&
> + req->file->f_op->fop_flags & FOP_PER_IO_HINTS)
> + rw->kiocb.ki_write_hint = READ_ONCE(sqe->write_hint);
> + else
> + rw->kiocb.ki_write_hint = WRITE_LIFE_NOT_SET;

WRITE_LIFE_NOT_SET is in the wrong namespae vs the separate streams.

Either use 0 directly or add a separate constant for it.