Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1392559ybv; Thu, 20 Feb 2020 19:27:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzP3q1bvlBd3PGtVZsgc1ODkSEZYRmtAm1qsP7bbeVtjRe614bslgKWy2aaH2l8QP2xjhn2 X-Received: by 2002:a05:6830:10d5:: with SMTP id z21mr27239470oto.30.1582255638184; Thu, 20 Feb 2020 19:27:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582255638; cv=none; d=google.com; s=arc-20160816; b=KUwgTen/zRQ6wKXzmk9RTEzs/j9O2M3KhskGp7fEdPLhYqGOTVrv+Oaocs/55XiJYb CkVdqsvz+WV4DdAt2NdMqbDqzQpPBWFmoZRk1BiSc+pLYcOM5i6Y12tAWkkry39qA00c tWcmiQ4rurVrgMfgU5DPovCTP9fBLxOmME89owxeXgeL2jgFvJS0Ny7lx0rMGwBPgWnc wAsc+rtjV78Gtd1i81VDxNUsguolMEditF/ZdOLiH26f8psc3+W8SOEAjdGVPiIvSseR Eevt+ypEwsCCpkwS8tqgN3QsBU1jQkaC6YIfZ6uL6DLaHd03lC79TJBMHR/5GAvJUnhz qUxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=owcb4CMNvaoIORlq5lNkIRvU5IPCuIJMoPXOl4x4Vi0=; b=LiNW0ZpsolYBDSzC1LpP2iEf1RY95rPN6yT7JLeHv0zWjSgMEMbWams1GSY4dtugtc d2VdJhXy+RxxnWWtjyz3emmCsd+E+C3+ctpeoH+zPWrIAsHi2sM8MPpGzvYw8x0zoLKI BWaoML/EgCNursU6fDPaSdf7w4EoiUWjDDXidy72wBQXZ1HF3fFGDCMZpBB7RKLM7VjG fX17yPLEAxH3UK9/LDvWtzLJLjAYqbKpnzSQ1tpAZhCiFPh5QlkclFg/waHxNDaFTI+S MaPTl/T270FHJVsRoS/Px9Erni/YZo5jO+3fWFtXrHKl9bNuKCIJPAiiOKeGms2Azbjo lZVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=GVE5JgGQ; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x207si155897oif.193.2020.02.20.19.27.06; Thu, 20 Feb 2020 19:27:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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=@nvidia.com header.s=n1 header.b=GVE5JgGQ; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729535AbgBUD1E (ORCPT + 99 others); Thu, 20 Feb 2020 22:27:04 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:10842 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729229AbgBUD1E (ORCPT ); Thu, 20 Feb 2020 22:27:04 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 20 Feb 2020 19:26:30 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 20 Feb 2020 19:27:03 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 20 Feb 2020 19:27:03 -0800 Received: from [10.110.48.28] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 21 Feb 2020 03:27:03 +0000 Subject: Re: [PATCH v7 06/24] mm: Rename various 'offset' parameters to 'index' To: Matthew Wilcox , CC: , , , , , , , , References: <20200219210103.32400-1-willy@infradead.org> <20200219210103.32400-7-willy@infradead.org> From: John Hubbard X-Nvconfidentiality: public Message-ID: <110bd4a5-0d12-7f8e-0d5d-78869b3f9135@nvidia.com> Date: Thu, 20 Feb 2020 19:27:03 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200219210103.32400-7-willy@infradead.org> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1582255590; bh=owcb4CMNvaoIORlq5lNkIRvU5IPCuIJMoPXOl4x4Vi0=; h=X-PGP-Universal:Subject:To:CC:References:From:X-Nvconfidentiality: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=GVE5JgGQrgvZz6V3WcHAMb67LvTCiKjS8hKTk2B9obgdAVU0QHb0/YJxV39UHoes4 fTXr2Jtotj3X/Fwe/w/9iL/HOFWfI2kViUR6nyfJwvx8nqtqScXQ3n96GkcYB1wNPO XGPagBrK93GOX00pFiXiJHkA1qTPFqsROFjX2+5h+HL+PQ8ZjWDS/3ZuHc4z0dVP+h WtmdiPx3QGWa8NpWywZApZlnSwpXa0whA86w7R9jBhModR2G6pTCPMMywLXmz0jQhU Mq6qMUcVjmHdejFgFbiZFY8CM3ofmVhq2v/OrR1Fl6wAqwzwAWcR355R9KcDSaIEbJ Cl3cmTmb4JbpQ== Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 2/19/20 1:00 PM, Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" > > The word 'offset' is used ambiguously to mean 'byte offset within > a page', 'byte offset from the start of the file' and 'page offset > from the start of the file'. Use 'index' to mean 'page offset > from the start of the file' throughout the readahead code. > > Signed-off-by: Matthew Wilcox (Oracle) > --- > mm/readahead.c | 86 ++++++++++++++++++++++++-------------------------- > 1 file changed, 42 insertions(+), 44 deletions(-) > > diff --git a/mm/readahead.c b/mm/readahead.c > index 6a9d99229bd6..096cf9020648 100644 > --- a/mm/readahead.c > +++ b/mm/readahead.c > @@ -156,7 +156,7 @@ static void read_pages(struct readahead_control *rac, struct list_head *pages, > * We really don't want to intermingle reads and writes like that. > */ > void __do_page_cache_readahead(struct address_space *mapping, > - struct file *filp, pgoff_t offset, unsigned long nr_to_read, > + struct file *filp, pgoff_t index, unsigned long nr_to_read, > unsigned long lookahead_size) One more tiny thing: seeing as how this patch is also changing "size" to "count", maybe it should also change lookahead_size to lookahead_count. thanks, -- John Hubbard NVIDIA