Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2115150yba; Sun, 7 Apr 2019 09:08:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6SCUawyTcDUcKkawQXwHDaKb+VNv6gx82IcshL9t4yJEGRrNfs6Zecl20y2D9Ypt6V53i X-Received: by 2002:a63:6503:: with SMTP id z3mr19083881pgb.113.1554653319425; Sun, 07 Apr 2019 09:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554653319; cv=none; d=google.com; s=arc-20160816; b=lAhEjNR60NHX5y96oH4pbbse7oUwlbmSevGTOlh5fTSCg4s58IrhOwQ9t1rBYQKWIe tbwBj06hQYxGJNN4oWNGa/1i/14DETeNf1l0h3sT3q38D6bb4ipWdCiTJAjw5eBYUSuT OjQoKTGMkIcd9pBbbgx64xGkoU9+1uNwRuBH4Zt/KAZV7ojrIUxfhG5zKgR0LxL8WmO5 yug9yqEjqmO4vvhIZnkTd89UpGGxQV+sVcV7S2hSHrX9YGAB644Fuwolo56sDRali4R6 BNwzlNwniVgVQxdOgttujBWzBxtynKf4kEyKwQi766VretAtv5u5w2d0BRa9cYYnzv9/ +MQw== 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:mail-followup-to :message-id:subject:cc:to:from:date; bh=tX2d3yVxVVJ5gmC6IpYQC+sBvVtL09MQjLtHLVHD5vA=; b=N1r7tFJqHfI8FUUIduFfKeiaJh9dD5ewpsFYrL2s2W7BkUT6XuvfYJFaiOyfSqxjni wYWT3isPVp+RBnOho7SQ59VlW2qyEuW3PK9XlKJR0OKlyf2q0t/vzN1+JWvuW8I/12Eo OU6mb+Loc+wXsxHJ3MI67iJfB63akV5hgV57UbDQ//PioICyQTgzIw99Uxagufk6n0v2 CrHBIj/9UhYcmadGvsCpiW26zSuwpj5cbAySHtOKb2C2dyY9ioJIE6kMbyUlrjSZ0urF 5uv7YDtaNyt4tnd1OTzmYK8UtVL/dWNuC0Az1EGD1YVnONBp64YA0ZsT91PLwsf9pzYl Gk1w== 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 a17si2718507pfn.95.2019.04.07.09.08.24; Sun, 07 Apr 2019 09:08:39 -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 S1726580AbfDGQG5 (ORCPT + 99 others); Sun, 7 Apr 2019 12:06:57 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:55752 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726329AbfDGQG5 (ORCPT ); Sun, 7 Apr 2019 12:06:57 -0400 Received: from callcc.thunk.org (189.sub-97-41-144.myvzw.com [97.41.144.189]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x37G6eF3011084 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 7 Apr 2019 12:06:47 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id DA506421A12; Sun, 7 Apr 2019 11:55:21 -0400 (EDT) Date: Sun, 7 Apr 2019 11:55:21 -0400 From: "Theodore Ts'o" To: Liu Xiang Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, adilger.kernel@dilger.ca, liuxiang_1999@126.com Subject: Re: [PATCH v2] ext4: fix prefetchw of NULL page Message-ID: <20190407155521.GL18897@mit.edu> Mail-Followup-To: Theodore Ts'o , Liu Xiang , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, adilger.kernel@dilger.ca, liuxiang_1999@126.com References: <1554019894-11041-1-git-send-email-liu.xiang6@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1554019894-11041-1-git-send-email-liu.xiang6@zte.com.cn> 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 On Sun, Mar 31, 2019 at 04:11:34PM +0800, Liu Xiang wrote: > In ext4_mpage_readpages(), if the parameter pages is not NULL, another > parameter page is NULL. At the first time prefetchw(&page->flags) > works on NULL. From second time, prefetchw(&page->flags) always works on > the last consumed page. This might do little improvment for handling > current page. So prefetchw() should be called while the page pointer > has just been updated. Thanks, applied. - Ted