Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp566476pxb; Wed, 6 Oct 2021 10:37:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGdyvoQCL65HKT9CkvJacewhiH16DntPBHHPSI4ec97ox0lLoHZwXeNuttH/gyHXn7+AQF X-Received: by 2002:a05:6a00:1ac6:b0:44c:9e9:9e98 with SMTP id f6-20020a056a001ac600b0044c09e99e98mr34175375pfv.69.1633541839665; Wed, 06 Oct 2021 10:37:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1633541839; cv=pass; d=google.com; s=arc-20160816; b=PYvZRlLdNH/5w9sSGtJtQx1yQzKa2NTad4Pe1aIA+v3NvCQ9lL/8B+9PpAMH2Y0VHS 3ISNM9MA9IjxpcqzTfDyaEhVtEsGCcQt5na5Ckn21V+Zfjurz0d3qVYJiWa5BYqApxdH FI51i9spnPyP/6Nos+L5AgVMPDKNfi4x67Wv3BNq78BI+T4acrraDrwU2JfkuYwoUHzM aV9vUSIMlAGR17PFSxjW9Y2a5tpH7zZwnjN587xYY40fREvb+g+YKho9UI0dJKRNSqSV bX82SIvt21mOjawOKhEeQfGiQVND18IVfe+v4pZBTdtZyOIw/6dMkSEkJIJB9KdcoqoO Vauw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=Oi7WVbyHpd6gwq7dIV6GDOaD0Nn0mYAMBHU92gbXWfU=; b=sd887g1ATTP5LR4Cg/6cy4VhZ5zIj5uwWUsZGosnRyZn8pElZFoOC6tCNhgqY8V/1x N9YcNbGGEOqqBXoOOskKXe7Q8iuneeDBIvc5s0FxCCB0jM0TwxIQWl3Nl/kbNOiYBvBG fIhizJQhSyFNcVwHihbiinvr/qD6QLFJKzq04oQ46SUZHD96erYS99Oo+NuuMCfJF0iW 16HPoHEqYmM0RY6M5h5+WAK+Ho87OdRd/EMTHsARMoC9xy12Jg9j62gBYHOa8A4Iwhcq nu7AiKX3yZZhubTLDFJ2fuPh4hGXbgI7bvW3zsY+ITcHl2sX28++NhfRsH3FMakdXSmZ LkHQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=bep0PuMs; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=wnelBhUR; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si25722887pgq.187.2021.10.06.10.37.04; Wed, 06 Oct 2021 10:37:19 -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; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=bep0PuMs; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=wnelBhUR; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232019AbhJFRgc (ORCPT + 99 others); Wed, 6 Oct 2021 13:36:32 -0400 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:7676 "EHLO mx0b-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231175AbhJFRgY (ORCPT ); Wed, 6 Oct 2021 13:36:24 -0400 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 196GxD3b025531; Wed, 6 Oct 2021 17:33:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=Oi7WVbyHpd6gwq7dIV6GDOaD0Nn0mYAMBHU92gbXWfU=; b=bep0PuMsDB5PvggvTAORA06jO1vO2ksf5oCH7TbssQ4tF2axaF6MXlU3ZV5jw1Ys4lEN 9Piwc+dNnBukd/iPNwM4SoqdSugOPVQ/Zq5JIKo5FnMmQNTZI8f6MNgjN5nAo2E7pukT E7miyL6w+KxlCPkaL7zHnrnsemlII2gjTsPwOSn7iurtrO1KcsAEwcSBbyw+gd4oCnz7 +JCktg0hBYYRwCeAmrrCMZfLOHVfQO5zh1xYhTosi6glrmpYISLPalEtasUMfwXY0nM6 CPGNwzIrY8gbTEEe3wfalluFu3QsjYDucBr+EoK+LZOQy99jxYWJyTlk6RZe8vnSwp6y tw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3bh3y5drx7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Oct 2021 17:33:20 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 196HEjkv091785; Wed, 6 Oct 2021 17:33:17 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2101.outbound.protection.outlook.com [104.47.70.101]) by userp3020.oracle.com with ESMTP id 3bf16vg1rt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Oct 2021 17:33:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nyzuuzajCKneUbasIhtLbtZcwIdM7f+jRpjE72U9nfWWePcuQ7g1ZRJjd5ui6gY49GLENsGPx8ds6HBHTLuDouc/NwDO29aK47yfNJxGRr/1tUbPSglNeFHFpa0pYQpnpjMHobRxzTmUXB/Sb0C4vbV74PbIcbLCgscJzu8uHFN9Pb/V+AV4Ezc/odMfxNMdfE/I8fC6cpiE9rwFUWhufE+W5QNI3CS/SYelmJOlAu3TT5xmH+hGXa7QbeCFLxU2S7muWVgDD0qSHXS/xZpyw2ojT+5q9IJFm7J5+23F98SD/kaC7kFG6uipGaOzQJV2jdwfuBd7urxis9bQd7RAYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Oi7WVbyHpd6gwq7dIV6GDOaD0Nn0mYAMBHU92gbXWfU=; b=YrIlWfm+fkQikRCmUbjvPMokCqYbFSGc6ZJId2SkZkYZoqosiknPB8YSIwNYW/ownEy8jeptIyPMnXCcswepQRDQZ8Gyv1cg+Ubf91bQOpR4cXo8BUYkwsC1kOMexk7cNrklbQ/rGRRVkeXqHG7KflJZKaMQtna8SticBoXDMjjsIDFFDJRv8ISosJPsrNUygUey3LvIKDsVvwWNSBKXXChxkx0KVX6ISs9S+rmybZhs/MmK2SwFpJU3K+rqqVjsXPW2gBBiPe1hzgfNlKdmLyvoLKW/Q39JYAxOxWb4qxFU6mdWx5mVnxVHk17ns919R1rHN8idgUPVd8E/RLorog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Oi7WVbyHpd6gwq7dIV6GDOaD0Nn0mYAMBHU92gbXWfU=; b=wnelBhURYsM3igJhNUoZmI5A6slw/D+eh4mn8sYUTVHjOywxF/jENnOhz5nU3SJchc6hb3gYzTEHkpyEQsgzAz1UwR7gCpHJUZcZK9IFmJ0dyz8A6XSNqXSRg7EETzf87WDv4gjtolcLOr6yBhvn2j8cU3m2pMrhBw0VEY/o5Cg= Received: from BL0PR10MB3011.namprd10.prod.outlook.com (2603:10b6:208:7e::29) by BLAPR10MB5012.namprd10.prod.outlook.com (2603:10b6:208:334::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.19; Wed, 6 Oct 2021 17:33:14 +0000 Received: from BL0PR10MB3011.namprd10.prod.outlook.com ([fe80::6d61:54c2:40f0:93a]) by BL0PR10MB3011.namprd10.prod.outlook.com ([fe80::6d61:54c2:40f0:93a%5]) with mapi id 15.20.4566.017; Wed, 6 Oct 2021 17:33:12 +0000 From: Liam Howlett To: Suren Baghdasaryan CC: Rolf Eike Beer , Andrew Morton , Colin Cross , Sumit Semwal , Michal Hocko , Dave Hansen , Kees Cook , Matthew Wilcox , "Kirill A . Shutemov" , Vlastimil Babka , Johannes Weiner , Jonathan Corbet , Al Viro , Randy Dunlap , Kalesh Singh , Peter Xu , "rppt@kernel.org" , Peter Zijlstra , Catalin Marinas , "vincenzo.frascino@arm.com" , =?iso-2022-jp?B?Q2hpbndlbiBDaGFuZyAoGyRCRCU2U0o4GyhCKQ==?= , Axel Rasmussen , Andrea Arcangeli , Jann Horn , "apopple@nvidia.com" , John Hubbard , Yu Zhao , Will Deacon , "fenghua.yu@intel.com" , "thunder.leizhen@huawei.com" , Hugh Dickins , "feng.tang@intel.com" , Jason Gunthorpe , Roman Gushchin , Thomas Gleixner , "krisman@collabora.com" , Chris Hyser , Peter Collingbourne , "Eric W. Biederman" , Jens Axboe , "legion@kernel.org" , Cyrill Gorcunov , Pavel Machek , Muchun Song , Viresh Kumar , Thomas Cedeno , "sashal@kernel.org" , "cxfcosmos@gmail.com" , LKML , "linux-fsdevel@vger.kernel.org" , "linux-doc@vger.kernel.org" , linux-mm , kernel-team , Pekka Enberg , Ingo Molnar , Oleg Nesterov , Jan Glauber , John Stultz , Rob Landley , Cyrill Gorcunov , "Serge E. Hallyn" , David Rientjes , Mel Gorman , Shaohua Li , Minchan Kim , Rasmus Villemoes Subject: Re: [PATCH v10 1/3] mm: rearrange madvise code to allow for reuse Thread-Topic: [PATCH v10 1/3] mm: rearrange madvise code to allow for reuse Thread-Index: AQHXtwbqRHUtflHT6EeCVViEJ7Fas6vCbdyAgACa+ACAAeENgIAACJcAgAFP6QA= Date: Wed, 6 Oct 2021 17:33:12 +0000 Message-ID: <20211006173304.w77ksyuql6x5fbk2@revolver> References: <20211001205657.815551-1-surenb@google.com> <5358242.RVGM2oBbkg@devpool47> <20211005210003.v3zgqhefn5j65gig@revolver> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 60d9c937-f169-4298-2b1d-08d988ef5f78 x-ms-traffictypediagnostic: BLAPR10MB5012: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AicKNneMM6RnVuve6v9uM1YjPRcss47b7BKZhxjTdoBI5KU4YMwPVpieCi2BHKEHRvONzoWF+5vbipKNTE7tsIAC3RskADafbJEz9mYIffZgk94NxVH/1vcR7SLjsgQTWDI8ucBP+GTqE2/FpMu0ipUhsHnJiAqsmthM2E3hYPeu+YnMuh7vcjzUy1wQb7bnNmpZodFjVK4ZCg2vX2tNP18+JudFFkAGAZpO9nX259YWNq10VspE/5BVq+ed2W1Nw3Oeul9wcp5CNjCmIywYU1gllosgxrr2vlH86cjsg4KndNahzR1Q5BZmoUh+xRojnz3MRNYaOv43HU4tgJXASDzmHCWMeIjSr649v5jwOOWlCFX7Bn9+5LPMlY4DiBzt6UOndGClMRzkIVwWdD2OiBuZ7sDWTjPKRR2lSbsKSsx5Q+oycv24zKByvDvAtUPHs/t4jrfDIGS93C7kP2gB67NRn8Ih+a6M9WnJmTvGUJPGIlas/tM3xj+MJlGwC4QJYemupQf8uGhdycdOf2AcpJQzb8wwQPnRwxZRbTGxxMOqz+ODpd8DJ2+DlU8d94qQKFHfBEDoFu99kxpwuGROxorRcdyY8EkrtT5vV6BpXW9t8hqY5lxL/lxp8qnatVyCLTg0h1GCnQmsvP+hsTPvzozoRVF47wq19oaW+ewFyVo/nNwTpJ3/VzTlNa4uKJY5vqulbe/Tuae2uAQPMHaDXQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR10MB3011.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(7916004)(366004)(83380400001)(8676002)(86362001)(33716001)(38100700002)(8936002)(122000001)(6916009)(66946007)(316002)(71200400001)(91956017)(4326008)(53546011)(6506007)(64756008)(508600001)(7416002)(54906003)(2906002)(7366002)(66446008)(7406005)(66476007)(66556008)(5660300002)(76116006)(186003)(38070700005)(9686003)(6512007)(44832011)(1076003)(6486002)(26005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?ZjRMK1BWT29PemxDb3NUb09ZeVJUaWlPZHJwOER2VXVJTHpBZG41TzVU?= =?iso-2022-jp?B?Y3R1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M1Jscis5dS9I?= =?iso-2022-jp?B?Nkg1bDJxWFZyV0tzSHJLblZCeWpWVGJnNFpWWCs3L3FXNE5FRXdwZTlv?= Content-Type: text/plain; charset="iso-2022-jp" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR10MB3011.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60d9c937-f169-4298-2b1d-08d988ef5f78 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Oct 2021 17:33:12.7669 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LpRmnpMopjUiCBwpvbly5+pJYSl84ieKdDA3hyulHvOKwf//F79NzF2tHmG4iG2WhavhZvnJtVNdY+TFZVqZCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5012 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10129 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 phishscore=0 malwarescore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110060109 X-Proofpoint-GUID: SDIQtRBo92kKtTy6Zf8-jtMQIegffB1l X-Proofpoint-ORIG-GUID: SDIQtRBo92kKtTy6Zf8-jtMQIegffB1l Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Suren Baghdasaryan [211005 17:31]: > On Tue, Oct 5, 2021 at 2:00 PM Liam Howlett wro= te: > > > > * Suren Baghdasaryan [211004 12:18]: > > > On Mon, Oct 4, 2021 at 12:03 AM Rolf Eike Beer wrote: > > > > > > > > > --- a/mm/madvise.c > > > > > +++ b/mm/madvise.c > > > > > @@ -63,76 +63,20 @@ static int madvise_need_mmap_write(int behavi= or) > > > > > } > > > > > > > > > > /* > > > > > - * We can potentially split a vm area into separate > > > > > - * areas, each area with its own behavior. > > > > > + * Update the vm_flags on regiion of a vma, splitting it or merg= ing it as > > > > ^^ > > > > > > Thanks! Will fix in the next version. > > > > Since you'll be respinning for this comment, can you please point out > > that the split will keep the VMA as [vma->vm_start, new_end)? That is, > > __split_vma() is passed 0 for new_below. It might prove useful since > > the code is being reused. >=20 > Hmm. There are two cases here: >=20 > if (start !=3D vma->vm_start) { > ... > error =3D __split_vma(mm, vma, start, 1); > } >=20 > and >=20 > if (end !=3D vma->vm_end) { > ... > error =3D __split_vma(mm, vma, end, 0); > } >=20 > so, I don't think such a comment would be completely correct, no? Yes, you are correct. I'm not sure how I missed that. Thanks, Liam=