Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp242693imu; Fri, 16 Nov 2018 01:44:20 -0800 (PST) X-Google-Smtp-Source: AJdET5cDJobeUAoxqsZARxAdzoLbFEvx6lQ5KlAgDvyxzWb8LR9588j3dctZCjsOjSxAsHqlFyEg X-Received: by 2002:a62:cc4:: with SMTP id 65-v6mr10265464pfm.127.1542361460225; Fri, 16 Nov 2018 01:44:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542361460; cv=none; d=google.com; s=arc-20160816; b=qus94F0lhQzOsrEt0kfLXVtsyyFs18w1Z+YaxI5nvbcpZ8FhQwx1FK6qhCZu0wBMgQ i+9sXEpGIAFT9KSzY97Qi3KrAWLA5vHJ+x7zhInnFJMad+ZWk7/87L1GUqdniEXBN19V N9Mu9+iOMlpuFI054k953X7vgoMbpcnBSY0KP1UDrzBZGgxppi3E3L7mmYgaWIB2bYPR huQy7ECVfLgZuyqyq2GPirNLstu64BgXe51nz0xt+AhZDnZw0jZuvu2i6dhK10affnbh VbjfhLeIt5yQzLJqkzKbnWoZr1J0czCLq3G1/4Xbrx/5xIzFBh/YDG9sDZwqBWcCK60Z +dlw== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=KlIq2ATsQrtMqvSzH54d/LMqNnS3m6bZ1udEXhOE9M8=; b=y/sljWEZGhBa5QqpP27X4dtp5zWO08/owV7eCIGWhmPmNOKWoCxlbQZTubzJH62yx5 aMJIxeRLjrz19R1bUx7qNHMHSO4M0K+D27r2+fAKLEVE1/PFJU+Fe4mzlmqiHVhuw9Ac +aoXLnTwjVikJt6hskWGZ4MYhpNCSykm9JZWzI4PEB9GjyoCzN0IwkPRQLDWqTqMHDT5 jvI7mrqYiOgJ07HF1rrjQxh40PT+4zF5w8+SfPcXm5i+orqtzTNrHVvajEFQucd8+VzF PUhPzixOFVkGVYybzd57Ja3cc7aq8H0A76Rjmlaj4Es7hQPIlrQE2OSQkk1+seqk2XBm uraA== 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 133-v6si30676964pfb.41.2018.11.16.01.44.06; Fri, 16 Nov 2018 01:44:20 -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 S2389487AbeKPTxa (ORCPT + 99 others); Fri, 16 Nov 2018 14:53:30 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:42901 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727405AbeKPTxa (ORCPT ); Fri, 16 Nov 2018 14:53:30 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6105A91790A54; Fri, 16 Nov 2018 17:41:54 +0800 (CST) Received: from [10.151.23.176] (10.151.23.176) by smtp.huawei.com (10.3.19.213) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 16 Nov 2018 17:41:50 +0800 Subject: Re: [PATCH V10 03/19] block: use bio_for_each_bvec() to compute multi-page bvec count To: Christoph Hellwig CC: Omar Sandoval , Mike Snitzer , Ming Lei , Jens Axboe , , , , Dave Chinner , Kent Overstreet , , Alexander Viro , , Shaohua Li , , , David Sterba , , "Darrick J . Wong" , , Theodore Ts'o , , Coly Li , , Boaz Harrosh , "Bob Peterson" , 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> <20181116091956.GA17604@lst.de> From: Gao Xiang Message-ID: Date: Fri, 16 Nov 2018 17:41:47 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20181116091956.GA17604@lst.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.151.23.176] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/11/16 17:19, Christoph Hellwig wrote: > 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.. > sigh...I personally tend to use "unsigned" instead of "unsigned int" as well, but checkpatch.pl also suggests erofs to use "unsigned int" :-( Thanks, Gao Xiang