Re: [PATCH] block: Use REQ_OP_WRITE instead of its integer constant 1 in op_is_write()

From: Chaitanya Kulkarni
Date: Mon Nov 15 2021 - 20:38:13 EST


Bean,

> static inline bool op_is_write(unsigned int op)
> {
> - return (op & 1);
> + return (op & REQ_OP_WRITE);
> }

As pointed out by Damien it supposed to indicate data out and not
only write request REQ_OP_WRITE.

>
> /*
> --
> 2.25.1
>