Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp388430pxj; Wed, 2 Jun 2021 01:29:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzQDNM6CGqBUnhg/8d4NyuZ20a+g/9++o6nX/01AD0BirkKNUQsClk+cxOO5Xtr6+x/MTd X-Received: by 2002:a17:906:c0da:: with SMTP id bn26mr33531993ejb.437.1622622576444; Wed, 02 Jun 2021 01:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622622576; cv=none; d=google.com; s=arc-20160816; b=I9j8x9VQUL/4zaGeoF7ZRACN6lLSwk/WateTnVRnlNOSRd+0K4SvmgHWtyHZkOUmEV JuBez2EpmvZMh8tSmvzm0Xjz8xug60Rgq9Ni3JXLmg3CzN/q4o6VjZC3TTDUxCBA1NMh cV88RX1KO6mYLMTlCT1yDmdwQcG+GIIzRVt5g1ID+BdKYHmLtls4snaTPkJ9QORzy4dU 0V8cpZH19/UOAkpjgpzcQsPJi3/kssqWgo+Apo0S+a5kOrk7p/3moRqrQuXJ0a2jx1tb AqbpjwZwf22dYui87LPIq6+AiTKGGoSMPmo91+cksvD5DH4u14uKMWQep6BayVGfMRXY CnoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=b+fmb+csJPTIPbR3UbrCpv9a0dOHP3jR318g2TWODP8=; b=xwjXwAdX79m6EDeZNtyHy8SyzpVuMaVtqaMkjz4aQZiUi5YErXZjhIKamOUzWupXM3 +cpuvldlfwIo4FftvuO1QijIgf27moIOP6pDWZfvsRsGbpX5hYMoObCDMhnCPLmxQASi MYBBEGgoPx4whQnCTXsnmm4qz1/HI2e9WrENqUVyek8+E3e18M0auMMmc318eXbIHlys uTjgzzUuC43Qykc2GCu1DrCZfGmqv/bwoFWDo19krY3Fx2XS83ahATB23FCJlykP2Yno 62/6FMPBKVTjLIj5DqDkCvN0anM0MxIWu8c75XwQN/omCaAxC8uFCXn91qX5zcGox2cL GvRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o32si1746788eda.316.2021.06.02.01.29.14; Wed, 02 Jun 2021 01:29:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231461AbhFBGoB (ORCPT + 99 others); Wed, 2 Jun 2021 02:44:01 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3505 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231556AbhFBGny (ORCPT ); Wed, 2 Jun 2021 02:43:54 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Fvzs90JyszYs96; Wed, 2 Jun 2021 14:39:25 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 2 Jun 2021 14:42:07 +0800 Received: from [10.174.177.243] (10.174.177.243) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 2 Jun 2021 14:42:07 +0800 Subject: Re: [PATCH 1/2] ARM: mm: Refactor __do_page_fault() To: "Russell King (Oracle)" CC: , Catalin Marinas , , Andrew Morton , Jungseung Lee References: <20210529034138.83384-1-wangkefeng.wang@huawei.com> <20210529034138.83384-2-wangkefeng.wang@huawei.com> <20210601143125.GB30436@shell.armlinux.org.uk> From: Kefeng Wang Message-ID: <8b528367-3636-d05b-84d3-754876ff1e6a@huawei.com> Date: Wed, 2 Jun 2021 14:42:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20210601143125.GB30436@shell.armlinux.org.uk> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/6/1 22:31, Russell King (Oracle) wrote: > On Sat, May 29, 2021 at 11:41:37AM +0800, Kefeng Wang wrote: >> 1. cleanup access_error(), make vma flags set and check into >> __do_page_fault() and do_page_fault() directly. >> >> 2. drop fsr and task argument, instead, using vm_flags in >> __do_page_fault(). >> >> 3. cleans up the multiple goto statements in __do_page_fault(). >> >> 4. use current->mm directly in do_page_fault(). >> >> Signed-off-by: Kefeng Wang > This patch is a really good example of something that is very difficult > to review and see that there are no unintended changes. > > Many people have complained about my patches, where I create a series of > many patches where each patch does exactly _one_ simple transformation to > the code. This is a good example _why_ I do that - a step by step single > transformation approach is way easier to review. > > Sorry, but I'm not able to sensibly review this patch, and therefore > I won't apply it. Please split it into smaller changes. Ok, will split it and send v2, thanks. >