lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] block: Use REQ_OP_WRITE instead of its integer constant 1 in op_is_write()
Date
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
>
\
 
 \ /
  Last update: 2021-11-16 02:39    [W:0.283 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site