Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2809785imu; Sun, 23 Dec 2018 08:16:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN6CsP8XOc4k6HmH5txpHGvbD6F9lEWjeSZ1ftBLmux8hymVYtrmn1OphqtpPoPmykZHNNWT X-Received: by 2002:a24:4352:: with SMTP id s79mr6983986itb.43.1545581794353; Sun, 23 Dec 2018 08:16:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545581794; cv=none; d=google.com; s=arc-20160816; b=IBMLtRZ33ynT3h1zKl/X+TFj7tQGCNZAWZkVdMJD4wBAVf3XuNLMNR3IX5LLku3PhB j/KWuujKqoeZbnf4i/WJahohADAoMJJHetpEXFcFTBEJJtoBmBTsQd87X+R+NMVLrjEl mcx3vmdNn9OfhTqerSCyKl3sgeaucP6BA4QeWH1icqiFjLBSRbXZcAuh6H9h9/Q/XIVa /Ee2CV9XB3aMsGHXJF3h/8RUeyZsRLcBInB4gss1QPt5TZmQ72vUZvxQNJWjiNmlLujj avG9mTpxpFq+ObOmwVRg/s77Nk/VFu4yF6ZIm67VmzguANpixbc9tKpzOGr6yzxwNCFw C7XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=oAZc1TB5VIllL0LN1ysvCnLYLA4BeXi1PNyTKAVFtNc=; b=uBZlqvazXTCtr/Ngtx4NY6dkf7HNA/TYL6/QXB2oZbmDHSHLCgP1gyW1Ro5yJ7njHH x//NJXdhZNr3GfiaQa3pLPK025B7hopOmSogo6j8mblxlQnax4kzXpbpRn7hhia+dJCW 8ZteeAcz7O0iEsT0vLLvKeJa2ACEeP8IBeU0eHReSBI8nFxWWSmT7h+FFbpMiEQP70QA 8wrEwZGtKM6rNJf5XZC8h66TvA9wGQ2PndB7gczRNfnX48Jexl0y2xyR85e2/Lqfzoq2 1KOCm03lLyfAcCZJXg+MVTWRnuiiqutyhWLcrphcYMms8WF+6D6eJsuqlBD2l5nAM3DN xFZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nRwgTR2a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si14512757iol.151.2018.12.23.08.16.21; Sun, 23 Dec 2018 08:16:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nRwgTR2a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391249AbeLVRVA (ORCPT + 99 others); Sat, 22 Dec 2018 12:21:00 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:46654 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390141AbeLVRVA (ORCPT ); Sat, 22 Dec 2018 12:21:00 -0500 Received: by mail-ed1-f68.google.com with SMTP id o10so7168317edt.13 for ; Sat, 22 Dec 2018 09:20:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=oAZc1TB5VIllL0LN1ysvCnLYLA4BeXi1PNyTKAVFtNc=; b=nRwgTR2aEhUB9nLKbgAWZJ7SEDEJzvPB9ayf+i5kq9qDuafD3eqHIa2SrNkGbeSxHF xbdVe0LJ5Sw2gsfUypYWOsM1IlKloODzwCkN2HP5Sj+A1hllyLEjk/DWta9m+E4H8fod ahNaABKV+F83sq7D4QrHwuZhdGlge90MlOOR1EJhC8+Q4VSEXrbFY6oCsRQfQplEgUmr NynNd5dDYaKgUYhJ795G2kO4hwwdfrF6NYeAUvgXSH+GCFCGFbB+m+df6gEczqiLuWHa iXn1X2V4rII8/GCCONByK9j04QxgfCOEFWfFhWD56aHYJLJ2amSmnS2tuWaSpBgn51Xx Xn5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=oAZc1TB5VIllL0LN1ysvCnLYLA4BeXi1PNyTKAVFtNc=; b=XcdN4cznoAoo22KuCDA3kH8fX4/y52gVB1k+Luxo+g+hb4cjv2k+DbzzV3UR6DHpZK w18E0zkbjNo2Y/GWVhvrViZNKsscwNJlb+YhszfPtRxUod1jlZmmJPQNzaa8oR3xBYrr 3gS+DO+eCgwL931W2uwy4W7PrazuRuaJ2cQl5/Td//pZQZpn4QkQUl82UNoxjbmKmLsZ q1U2jgMLduqqwZjj/O+h8kUW+gl6DHlQBrXHnqgpuv9J6A7EL8rWTtH7Gcr1MXccQ1MP 1EaxpyKcn1S2+9e92IKrUHWCKetMjPJDcZbzAC/QfVTWhP4FINlx2s0rrcegOkSTZpR2 vuzw== X-Gm-Message-State: AA+aEWaykNeLTyQkLpuSlIp7eRY52sNCxiCwjVYrV6BdWylNthzHuvtj YGnPJh5daAdsflsHtvINAY++3TGXWBI= X-Received: by 2002:a17:906:815a:: with SMTP id z26-v6mr4252597ejw.121.1545473019697; Sat, 22 Dec 2018 02:03:39 -0800 (PST) Received: from bebop.suse.de (189.26.183.192.dynamic.adsl.gvt.net.br. [189.26.183.192]) by smtp.gmail.com with ESMTPSA id jo7-v6sm3986162ejb.12.2018.12.22.02.03.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Dec 2018 02:03:38 -0800 (PST) From: Marcos Paulo de Souza To: linux-kernel@vger.kernel.org Cc: Marcos Paulo de Souza , Jens Axboe , Tejun Heo , Josef Bacik , Mike Snitzer , Michael Callahan , Omar Sandoval , Mikulas Patocka , Keith Busch , Ming Lei , "Dennis Zhou (Facebook)" Subject: [PATCH] blk_types.h: Use REQ_OP_WRITE in op_is_write Date: Sat, 22 Dec 2018 08:03:54 -0200 Message-Id: <20181222100356.559995-1-marcos.souza.org@gmail.com> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of just using plain '1', as it improves readability. Signed-off-by: Marcos Paulo de Souza --- include/linux/blk_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 1dcf652ba0aa..905c666a0101 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -377,7 +377,7 @@ static inline void bio_set_op_attrs(struct bio *bio, unsigned op, static inline bool op_is_write(unsigned int op) { - return (op & 1); + return (op & REQ_OP_WRITE); } /* -- 2.16.4