Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp222675imu; Fri, 16 Nov 2018 01:21:01 -0800 (PST) X-Google-Smtp-Source: AJdET5eATSvaNVrDdx7OzIv4Igb6OuQAoA779QwvTGrem3fbh4G2O5ihUHQ6TU012vxRsamFXdvJ X-Received: by 2002:a17:902:166:: with SMTP id 93-v6mr9771015plb.68.1542360061434; Fri, 16 Nov 2018 01:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542360061; cv=none; d=google.com; s=arc-20160816; b=ebqln5L6sojcTZ/KbcAO0Hp9UQN5CyBrSLvF6b/ExaebE6fZuFQC8YzcrwXDES1S4h 0Pl5cfZHB2tOwsSQo34i2NDxduplwEYvc6xA5izWEOQHxA+97ERiSKodWDxr2ddZU30x 25vaZnTeO9vZoHX7cj0GBjXA6kagVop3k1cgzrG8diNSVNG08KTtCJ6KI5VhZzaUu88n 1BXPL8Wn/JHX4iSO8PsGTp4YohVp0XABdyY5h1t190MINFrBdB/w4JyYRPTA8CWu78Hf N5KlrwvhsTUzbGIHzumKdyqMtEeLHvmHD2P6gBuiqPJIDn5DiZMWPg/nckGYHRrtMYXO KMlg== 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; bh=KSM7uuZQiX49W+RLHj8U+xl2BY1yqDiKXX6gP9n3wxk=; b=Aqt3kAFB9dC+nR+ZTjA0jl5VSsWb4ZtEiWawuapumkflemne4wc7F3LopjxFCIVvQX Obp5RapacpfkfF4A157cLN6Fsu4ppKLK76LisT3Tj9K+OBzS2K/Eif3s8JBXhgT51hMi SP9xCofYPMa+wqKtUrqBgJmjTE7DGFnEIA8tjOrJAlC+13C8BhNruGRUI1wUtaOrik9J 3hD+ouwNMkR3k2UDQEkrdIIBPIdONSZNDaEZu/kd5FgMaHlQ9h/csQHS06+YJqFLnywn GqgzfMpGwztjJfEuJu4Ls9iJCCY6KjJUMGMT0OCExvMfrdJAH8Pvrpx6VIvpLFEqm7Aq ngPQ== 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 bc7si5408207plb.120.2018.11.16.01.20.47; Fri, 16 Nov 2018 01:21:01 -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; 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 S2389461AbeKPTb1 (ORCPT + 99 others); Fri, 16 Nov 2018 14:31:27 -0500 Received: from verein.lst.de ([213.95.11.211]:48230 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727398AbeKPTb1 (ORCPT ); Fri, 16 Nov 2018 14:31:27 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id E4DAB68D60; Fri, 16 Nov 2018 10:19:56 +0100 (CET) Date: Fri, 16 Nov 2018 10:19:56 +0100 From: Christoph Hellwig To: Omar Sandoval Cc: Mike Snitzer , Ming Lei , Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Dave Chinner , Kent Overstreet , dm-devel@redhat.com, Alexander Viro , linux-fsdevel@vger.kernel.org, Shaohua Li , linux-raid@vger.kernel.org, linux-erofs@lists.ozlabs.org, David Sterba , linux-btrfs@vger.kernel.org, "Darrick J . Wong" , linux-xfs@vger.kernel.org, Gao Xiang , Christoph Hellwig , Theodore Ts'o , linux-ext4@vger.kernel.org, Coly Li , linux-bcache@vger.kernel.org, Boaz Harrosh , Bob Peterson , cluster-devel@redhat.com Subject: Re: [PATCH V10 03/19] block: use bio_for_each_bvec() to compute multi-page bvec count Message-ID: <20181116091956.GA17604@lst.de> References: <20181115085306.9910-1-ming.lei@redhat.com> <20181115085306.9910-4-ming.lei@redhat.com> <20181115202028.GC9348@vader> <20181115210510.GA24908@redhat.com> <20181115221847.GD9348@vader> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181115221847.GD9348@vader> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 15, 2018 at 02:18:47PM -0800, Omar Sandoval wrote: > My only reason to prefer unsigned int is consistency. unsigned int is > much more common in the kernel: > > $ ag --cc -s 'unsigned\s+int' | wc -l > 129632 > $ ag --cc -s 'unsigned\s+(?!char|short|int|long)' | wc -l > 22435 > > checkpatch also warns on plain unsigned. Talk about chicken and egg. unsigned is perfectly valid C, and being shorter often helps being more readable. checkpath is as so often wrongly opinionated..