Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1933486ybh; Sun, 4 Aug 2019 13:20:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUaybETioQF0i9xtz6ifs9458yZ6rwygBXPaDCSl04c+oCSjL9f8teUScJb82etLaPu2g3 X-Received: by 2002:aa7:9516:: with SMTP id b22mr69402279pfp.106.1564950003482; Sun, 04 Aug 2019 13:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564950003; cv=none; d=google.com; s=arc-20160816; b=YFItdgqL7KYcjP+Z5F1hqVYru/1P1bBItaRHpUG5rGVqzyjK4p0HDHqdgUcbo+LGYc FaQezDEo6vxo3HqUalgQNZIDjMETFfe+wBGoNcrvTCqy3FdSBf7NiAjUDXhQNGR8YjLp 1eBtSCXgdAJ8z1NX1z/jd0zehGCOzUtRIcChRJDr+F4IHzsD6Y8r0LFXzTEqb8ORdc5O 5owx3a2UjyVUgx9YJfRkKRvX9LU6Tf+PkaabC2CfV8HAicWhcyDWvjpRDitANI9dwbw0 QxAJo+vsPOmih3dM9qhVsrNDyMGEqQI4JkaLNQmx1oJyCtIaIl3wz686mG6ZbeVkLD6y w2zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=LXTPlggXQeP58VK3AaajHJYZeaU3J8mZoFqV1ncoGWE=; b=t+5pvcbh6bQjNSEPHojYFFlhVJXRUqRlBs5DoTA4J7ZsGm19uXQSNRC3slK7CX1Z+y PINADucUbZgPqXgCEOyhQiIi9qNd6kcn3ctiOVsiKDLTGfGEwwHDMsO9TnewOlaPYy8N a9+xjfZ84LPGu35fPf9Ov7zGDNrAAGdsWI9g5JsjEF9RBOxT8dyB74pZIaBpgeH/vdhK G5qWp+GB1emHm+vPBq2i5OQ53SyZ+BpvVPcFs0/FldO0WuSgSrbo3m8AJaOLhhuPFd4C MCzMW5bzWJhoGCgfUvjHAdCXXJtwihkg0Tpp++abHD5DC4FUlmwHN4/JhzhsqPlAV4UB VnIA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t24si43107833pgu.221.2019.08.04.13.19.11; Sun, 04 Aug 2019 13:20:03 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726727AbfHDURX (ORCPT + 99 others); Sun, 4 Aug 2019 16:17:23 -0400 Received: from smtprelay0004.hostedemail.com ([216.40.44.4]:46355 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726346AbfHDURW (ORCPT ); Sun, 4 Aug 2019 16:17:22 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 1131D181D3368; Sun, 4 Aug 2019 20:17:21 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::,RULES_HIT:41:355:379:421:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2559:2562:2731:2828:2915:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:5007:7903:10004:10400:10848:11232:11658:11914:12296:12297:12555:12663:12740:12760:12895:13069:13311:13357:13439:14659:14721:21080:21324:21611:21627:30054:30066:30091,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:27,LUA_SUMMARY:none X-HE-Tag: book66_7a24adcc5af63 X-Filterd-Recvd-Size: 1902 Received: from XPS-9350 (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Sun, 4 Aug 2019 20:17:19 +0000 (UTC) Message-ID: <15450f6ba169de8862e11bc2d20b3645958f4efd.camel@perches.com> Subject: Re: [PATCH 1/1] block: Use bits.h macros to improve readability From: Joe Perches To: Jens Axboe , Leonardo Bras , linux-kernel@vger.kernel.org Cc: Dennis Zhou , Hannes Reinecke , Damien Le Moal , Tejun Heo , "Dennis Zhou (Facebook)" , Johannes Thumshirn , Sagi Grimberg Date: Sun, 04 Aug 2019 13:17:17 -0700 In-Reply-To: References: <20190802000041.24513-1-leonardo@linux.ibm.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-08-02 at 21:18 -0700, Jens Axboe wrote: > On 8/1/19 6:00 PM, Leonardo Bras wrote: > > Applies some bits.h macros in order to improve readability of > > linux/blk_types.h. [] > I know precisely what that does, whereas I have to think about the other > one, maybe even look it up to be sure. For instance, without looking > now, I have no idea what the second argument is. Looking at the git log, > I see numerous instances of: While I'm not at all a proponent of GENMASK/GENMASK_ULL, and so not a proponent of this patch, latent defects are possible in both cases. You'd likely have to look at SOME_SHIFT to see if it's 0 to verify the actual mask is what's really desired. $ git grep -P '_SHIFT\s+\(?\s*0\s*\)?\b' | wc -l 11907