summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2018-04-05 12:21:17 +0200
committerJonathan Bauer2018-04-05 12:21:17 +0200
commit21c5337bd525b608affb61d168e3decb80e5f9cf (patch)
tree097984d047c73d6e5f38d8617b1bf3e0453f7529
parent[net.c] reworked request types macros (diff)
downloaddnbd3-linux-4.15.tar.gz
dnbd3-linux-4.15.tar.xz
dnbd3-linux-4.15.zip
typo read check should check for reads :)linux-4.15
-rw-r--r--src/kernel/blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/blk.c b/src/kernel/blk.c
index 2c739df..511d349 100644
--- a/src/kernel/blk.c
+++ b/src/kernel/blk.c
@@ -34,7 +34,7 @@
blk_rq_is_private(req)
#else
#define dnbd3_req_read(req) \
- rq_data_dir(req) != READ
+ rq_data_dir(req) == READ
#define dnbd3_req_fs(req) \
req->cmd_type == REQ_TYPE_FS
#define dnbd3_req_special(req) \