Messages in this thread | | | From | Chaitanya Kulkarni <> | Subject | Re: [PATCH] block: Use REQ_OP_WRITE instead of its integer constant 1 in op_is_write() | Date | Tue, 16 Nov 2021 01:30:11 +0000 |
| |
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 >
| |