Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp203865imu; Thu, 10 Jan 2019 22:01:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN4MEj1Xf4UT7aFUsa3spJ8VjPbBRl3wO2HRbsm1qAZ/ZAY9O5MmLU0IKeo9jVdJVCr1p++P X-Received: by 2002:a62:44d8:: with SMTP id m85mr13390754pfi.164.1547186503943; Thu, 10 Jan 2019 22:01:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547186503; cv=none; d=google.com; s=arc-20160816; b=LuiKqj+QT0uYH/VjOjeii5wQYnrA+wIvkeckfjWNaMhDr3CBKofu8nFKC/11T33Ajl raCK3KSFa1h3siNKYMpOggphu8tHcFuvaPfckmlC+uxMrr3w0myLN5SrZVRdam8rFTLS xZGnRq27y+bCSj7uNDlQhWKdG+8RedZFmk1eYocOeIFxd5JkwNCaN4crHIsHVlIeWTke 4vBW/1+IHT0KitznKB6DaJhdvjJRTqun7RNIkBClJg953Miit9sFE6cekHN19TjzM5qw BZG9SUQE++m/1NoNUUoMjy9LKHAoL5DbKsoWsylEo9vB64M0v10+aHREvTYVD9k54Zwq ch6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GJBh392TZ0mIKpFaEOwsbyJxjswov6B1In9yDZbmHRc=; b=gnXq/WhTZW+8cuZWlajP7JyTbP+e2NkybEvyXWpOrINvdBfExYrIK12Bdn+9WWyEW1 T0lMMkhCw0gfC3Maav2XFXvdlQbJCS1H1k6Qw2c7bhRJY3JA+4svPnnf7vuQXM/oOU+3 nKx/Hj7FSZg73UYkR0nLZ0+B61VnEUyfyuYqxjBsQbLAhkIKsORnEVJV10RxchfWWj0H SaEBZdCIE4U3LrCtHUwLDI/SgLQ1VHhgfiyBCMCGrFzK/Xwo0tIcs02ZnF4GTaYnUKHO fmszidBxiup2ffRpAJVEI18FZUREV8+gGrtaRB3p1oro+Ibj/EpIo/FpqsxBmMZTzqGO KF+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YcRADYVn; 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 p14si9706952pfi.12.2019.01.10.22.01.14; Thu, 10 Jan 2019 22:01:43 -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=YcRADYVn; 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 S1729789AbfAKCQh (ORCPT + 99 others); Thu, 10 Jan 2019 21:16:37 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:36517 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727927AbfAKCQh (ORCPT ); Thu, 10 Jan 2019 21:16:37 -0500 Received: by mail-ed1-f68.google.com with SMTP id f23so11873378edb.3 for ; Thu, 10 Jan 2019 18:16:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GJBh392TZ0mIKpFaEOwsbyJxjswov6B1In9yDZbmHRc=; b=YcRADYVncNbEwEW+1AY2gPuX5beQrnqHzBCo2xprSKQFBmqYZ01S3iN8uDGl43k/Cx asvl5snQM6f/URVSJHLlZZS72f60kqsOGZfqNf9IPHLxDv/QkkryYLNW+vEfxYZyTTB0 5NkYIs1e04DPjAshpZNSo/TCn6c/BloEVy9Jlf3kULFAxtO75hPK3EpWi0eYNbkRm5i1 wAbvDPywV84ZE+WwpS7BCs9ae4cBHSwliBuQhsQa3l/eGzWG55vQFfykmDYrdXSMsW+s augi0zxZtnBEME2FC0PB54EOno7tiL6vPIK43jE4LWY6ApjAnA3CbHfKiGA9KehDIRre LoPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GJBh392TZ0mIKpFaEOwsbyJxjswov6B1In9yDZbmHRc=; b=NMu6neRtVaqbHsANJpAKTZl7MOo8LXdYaWrgwmLS9eQ/A5vibIRjKfwRs8d5AGrAeh drMVicb27uA29+cXWKM9MPuIgIBVcfqaHpnQpkRFRyYcJcYV36Op51scT8uVtXgF21Je 9vUzHl1B3NK7lL0HUfcLpm6doSXQp1wC3uTlQWOp48AxC4YkJHXOAmAY0pLIv3Mbnzey gHsFoEVBKnE8nX5rg5uR+r+ZT9MU/gJ2Fj01oovJ52QKyLSIcbe42I5kpgsPbcOlXiKN RdcdUKmez37mdvgAD91/iY6c39BdIbX8mHPAC42CikShoXzDDVQN+BzCoQUB7pbPJLFr k1Zg== X-Gm-Message-State: AJcUukcgxYOUbxV+a1vlkCusgzqhBPFvOllaBN4H40bBVUox6sZtS+yI tN5+jLHU3z8jQU7p0U9iy7PPeCTvDzU= X-Received: by 2002:a50:d797:: with SMTP id w23mr11991072edi.19.1547172994821; Thu, 10 Jan 2019 18:16:34 -0800 (PST) Received: from bebop (189.114.217.220.dynamic.adsl.gvt.net.br. [189.114.217.220]) by smtp.gmail.com with ESMTPSA id ec19-v6sm1320260ejb.11.2019.01.10.18.16.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Jan 2019 18:16:33 -0800 (PST) Date: Fri, 11 Jan 2019 00:17:07 -0200 From: Marcos Paulo de Souza To: linux-kernel@vger.kernel.org Cc: Jens Axboe , Tejun Heo , Josef Bacik , Mike Snitzer , Michael Callahan , Omar Sandoval , Mikulas Patocka , Keith Busch , Ming Lei , "Dennis Zhou (Facebook)" Subject: Re: [PATCH] blk_types.h: Use REQ_OP_WRITE in op_is_write Message-ID: <20190111021704.GA1228567@bebop> References: <20181222100356.559995-1-marcos.souza.org@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181222100356.559995-1-marcos.souza.org@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping? On Sat, Dec 22, 2018 at 08:03:54AM -0200, Marcos Paulo de Souza wrote: > 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 > -- Thanks, Marcos