Message ID | 20230518145544.1722059-19-Liam.Howlett@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp701679vqo; Thu, 18 May 2023 11:15:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7COW2zv1nNoAwT72l4TKev8zPrJ0d4/k99KQKd8K/lEAdOhmu8cS2CaakU+NUtREIv0Fvb X-Received: by 2002:a17:90a:2f88:b0:252:8698:d03b with SMTP id t8-20020a17090a2f8800b002528698d03bmr3323807pjd.14.1684433701139; Thu, 18 May 2023 11:15:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684433701; cv=pass; d=google.com; s=arc-20160816; b=a6/UHyrg4xlL2GnS8tGG3C57DhXzPCyTDb1qVcz6t/5bS+egdxk5Jh6Zxzdk/kvh8C lFgkslBku6NiCBZA0O5JilpLAkG0zUdtfHrAP4E1RHYttdIL1fJQqO3Qrt0zw4I1GaZ2 Drl8hMBcoWC8D5w5RkNgBtx3mQNte6xjL7j3AuDVL4wHGo+Y0YsbUwAi+UCChOzBkWSv FZr22JvCCzoEl6jqmYxTlA5mhWTGbZqEYLny2lTf6//9HfUn4xRW8qxzrCrkmaTRv4Iz aUeEsvemnlQrAd+1wIQzzOfSkNAC2tFnkDWFCJgH+hrF5gQbGGReqsoG4h1Cvb9sINIW NkMw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=RveCcSvwg4Nj9ioOmIG0jRkv1pBMfvzYki92JJYfpt4=; b=dklQxl0FQUV2QGMgSK32hnvGRDi2GusmqEOVfXrCu/yVXgZpVIgJE3cVJm/x15QkLn eTi1r40leDGbjP17S3eN/0dLq2if2kypKOlGensagc70Uw4PkFvFynA6UoWDfqsbuzXE ASq0GZII7wJWW/yyGd4UxZSzmCfy5Do/DCW1rRuuwgQ/bNkocVhCw+461+JUL3lws3kJ DWJUwwFU3g0hZOxWDrvvDJ7c+S8Fr2vRPRDcqjYIUElFZexqckDRRec9kErr/lCZaony 8HzvjCpDK0roqeK5VOJg5yR8rmQFC0fHCSLmOuqYfQXHliqfVVH6z38npHTLhwyM4uy3 pD3w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=dOUc4NJx; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=QzSHztme; 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 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s30-20020a63925e000000b005303a66d415si2159304pgn.405.2023.05.18.11.14.46; Thu, 18 May 2023 11:15:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=dOUc4NJx; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=QzSHztme; 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 2620:137:e000::1:20 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 S229613AbjERRza (ORCPT <rfc822;pacteraone@gmail.com> + 99 others); Thu, 18 May 2023 13:55:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjERRz2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 18 May 2023 13:55:28 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B112C2 for <linux-kernel@vger.kernel.org>; Thu, 18 May 2023 10:55:27 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34I6IoDI006511; Thu, 18 May 2023 14:56:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=RveCcSvwg4Nj9ioOmIG0jRkv1pBMfvzYki92JJYfpt4=; b=dOUc4NJxGf4jRm8jkoC4t9FJ04fgyDLT8qz6hRSRwjCmlisM4ouXsc7xTweLJMvc8kkA ntqbZR7SsKVQ4zHi68je/B0A+YSwk7XHUUTNfkGTCsyIQf0pk3vYEnd4wdsjzu06S75F ZctWSG6C9pCgoQt1fN/gm+19DHPswj9T6IzFqh7VTHXl+hw3RBCjO0eqSHXCDGVvujHP A8s/LR6fb1i0x0D922NjlpQtkFvsuaO5heTuC3RxMCaiTQagH0zEShCFVnpSd55LaT8V u21L40odi/OmSBIolXM/3FuLJFjxLH4X6RJ+lnIQWDPheWKIGlwU4OA/RiH60mBzmCdg 9w== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qj0ye82q0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:56:35 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34IE2jRu025047; Thu, 18 May 2023 14:56:35 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2102.outbound.protection.outlook.com [104.47.55.102]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3qj106vmg2-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:56:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sk2+3Zfi1PE2JV4TTCdnXCPw1v33CCp8afYud5/ZtTVZY3rPVwZ1qccf/R4E+UzE0SHRlJaRoi3GN9en5Y+bZ7K58J6Mo2hsUKiMMhLGErUxGaZ1RsyePzN2UDJqYUuV6zvSMyJnjmyrqtSLDd7XGtoLem4x8tEGXSUmyF1AQMgFRfO6Z3xxwZMtQI6KpDyshybJawZQDr1Osd+D+9Q0dSckz+vhXwqmY8oVTvhU1jd4VIb0J7/6bIPIlLzzqruQcv9zGOsvz+GwxvbrV+dvNdkPgvuErMacXPmNKuQ/cJZ9sV3qic5iZkXRK6Xn6EsWcq3y4F32icDOUw3S9DHbTw== 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=RveCcSvwg4Nj9ioOmIG0jRkv1pBMfvzYki92JJYfpt4=; b=e5HFn4Ivjgbp9X47X9ogmqCbEzW31AjhBUgSXTaHO7YHVcmH10ZC3R/vRakYzrEbnOLO769XQb+lwbjGxtZRo0lpaUjJ5ePmwVBDKj5vUEGh1YS7cYKF61BMCIf3EYgIv4UvffZOF1usRTvidBsSjf8anBreIwfR0MM/T/GjXryp3Dy/8fG8Wv7KUazwLTWF21grdjtzAgpruNmbSc27WiAROBh7SPVckt0MnPGaAUiNDVGu885p2WQuUpC7+WXBFjgOxpoj0uI4arfaMAsL2jAEqGABhz99h7h9iW2RGLPoyNNF5vwPd1RJhxBxsJeOYLvzp1boIb1sZAkIPuY/cw== 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=RveCcSvwg4Nj9ioOmIG0jRkv1pBMfvzYki92JJYfpt4=; b=QzSHztme4ajPtjSh00b+s6Pl5fBz72UvlFOUq92CP3VlMTy1CUjwLtxVtm39S/wVNowAbjWZGVzYG+mV1+Ujxc22jWdmvxSlC2FpVnDIP8GJmp8Hoe+sj5zg94vqFQl5VIdmRyUDetFxGEBTQUkEXv5gyl/IQIQCsNC7YJLBvYU= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by DM4PR10MB7427.namprd10.prod.outlook.com (2603:10b6:8:181::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.17; Thu, 18 May 2023 14:56:32 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d%7]) with mapi id 15.20.6411.017; Thu, 18 May 2023 14:56:32 +0000 From: "Liam R. Howlett" <Liam.Howlett@oracle.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Liam R. Howlett" <Liam.Howlett@oracle.com>, Sergey Senozhatsky <senozhatsky@chromium.org> Subject: [PATCH v4 18/35] mm: Update vma_iter_store() to use MAS_WARN_ON() Date: Thu, 18 May 2023 10:55:27 -0400 Message-Id: <20230518145544.1722059-19-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230518145544.1722059-1-Liam.Howlett@oracle.com> References: <20230518145544.1722059-1-Liam.Howlett@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT1PR01CA0084.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:2d::23) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|DM4PR10MB7427:EE_ X-MS-Office365-Filtering-Correlation-Id: e7bfcd50-2003-4f80-94d5-08db57b0118c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xVau9lZyxifVZx7NT8ESzi+G/mvRqreev6gWamrHAQB1erShhkJXWreTdL/2rbuC/a7QXuAtLDgHJY+lZBkSHj/5L63X+yR/tSS5UEZJCh3dE1cpz+AsKOWdjjx4hVKHMAUuTbfBVmnRt2We/r/4H5sEYu2fakDcqVakqbYt/CAgBE9cmEP1pfGTDMgRF61bubZ+noMPq7h7MlQln0HE0y8b/Ls+eu9On2X5AkaJY6gabkbrYEA7zsC1RTy8zUGxhxq99HXGQK9AwYeGblRLIaV1/pi18gzhZpOYyJ9CDlgf2ShhcbyoGYz7OLU9WK0ACBhBC28Z8NrvEWzyv6FC2jhedfz5iY5Ux0CIOsLT0xn+bLbf/5zMRtNx6VLOJ48DAk/V8wEtvwRqvpJQR7/lfsKsWoG6s+krQCY04f2PeLhLp+AOinhu5wVprJi4AgBf5P4IivuuNq/c47z4UAGJdnqKK9g+ImKidvNjSH10b0hZKkDEV6Cg2qzQJMHQVxxluU3Sp5HaRkrdcSBsFcdf6WirlA6Kuy5q9vJyL1ysmR1kviWW0YnAl3lxnx3SVcy/ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(396003)(346002)(136003)(376002)(366004)(451199021)(8676002)(5660300002)(8936002)(4326008)(316002)(6512007)(1076003)(83380400001)(6506007)(26005)(86362001)(186003)(38100700002)(2616005)(41300700001)(478600001)(66476007)(6666004)(66946007)(66556008)(6916009)(6486002)(36756003)(54906003)(2906002)(15650500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: K6tuF2EPsOT8UuOXvQBXUFeOkpb0HtJhKIbpx3H+u7egJUu14GZkAHFrakyxVBtWj8TWPr49KH5iovfd/2fXWxqlj0Cb1HcI7VYjg57yIv294oAh29vWdU00z3v62L4CKZP8GzLWd84lvr1yGNdnDsLY74O2GgAvCzQfZaevpLLT+Z9rrPLr0OdeqWSUlqj0DN8R56gvwu2ml45gO+TPxXN6uuIEshjkgP1nyIFuq8Q4Y73ju7qvd9o2F6EiabOCJfIaf0v91yykGB/aUjzZFrbVCjRsu7iQZ/uGw4tfGUhkbwUQlnzabj4i+MzN6M9uasJPeIyzDu9yZQqQWM663WMfChvscCca9axXxSlGCcr+Tr2Q6MRV+5QwCm+YoOQ3EcN/8Yo/gORSf++odS8Fy/esiRBEyE1RUmO6XEdvcjN0TBeftMvy1u/qrk5RcJDUeRzRDhv89EDTo62EWJYYSWGRgRrHZh7qnzZPj2Z37yk/i0GBnywzk5RV7g1cP6WAT/T3z1bc5FAJjcwkerce8rApUNVKWc/nJd2RbjTKyROnMFLzdwE/WytAzO37XnObUtLFZdFlzmsIw1YueROtA4xfz1EmwKsCzFtgE948DiptV6syZ5pi4qem8igKZK+JkdPKtAKMv0x49pfONePiv+6Bq3Jkh+c5lwn6V/ve1TVLbJLFUmyvTRIrwOjt9brTD7F3HubjRGAE8AnqLKBB+Ic3Pbl2lqQS03VOppQIfJmtpXImFdyyzu64ujj3245aLEfWCi59Q3WZE9VnJNRF5iUoEorXIC+Uz2SFnHg0kPEAm5e8dzhNxm3G5SOJq/ct3MB/qOPeeJvYXKadSQN/Q5Fl1PXcp/oniXZAt6FUq0im111/ItFanyI3n6Y8AzqDZUWHcnERQ0r88esm4ATYDPehSiNG0zIL/Ar8rl4ztm80iYxGux8oQ3BCz0i5CmZBEDIK1CPrdAZzJ2TCBfn7oUbIj9VpEMVjCw8nbs+48WDYn7rnnBEPOeAkmxk1pEKuOgnAV9AYmweex+Yt0Nfh+TXUDUKGUMuDVUYcgRmibjrJvzNRnV7Ze84llktTErtZo7ij0uh/mt24Zw9IloVGxXXSQQS5iulw+25sMQflA263Ei6+nNMAap3jdnlfE7V5u70tokIeRZytNatNge9rj/8JDfHFMLMmz2r7opyVEbjc4wFYT1N58E6mncUdXHHot/5EGSDJqizHSnYa27f68BO0Yib7a69l6FQetceDAD5mRQQ5OVhv2EW/i/Tw0LQJCp0bQjIE9QnUhjwxFYXIv8D2uWpH3yJCYF6p1fKFyHAY9S/jkumiiR8oDvJQEduXcVKMvlJrT2Wa9CWOGkUekolyJCOASmioj8oKQmRUZP3x+LwWayQZ7r0cUTsc1D+zri5EZUAjzOWFT7Ti0T6vQXd4RKwbHbU/ZJU9jwtQKr6FSuWoJ9aXJDP6LCy1ihMclDfgAKzD1i4r8F/niBiJVppIhqkBcPbF/8BIAxgeVdebQOBvmZ/kEy+GX3ZUnGBs1vN6PVTIjVuguV84QcmVzC6HKN93e2u8LWQfXqBui7M1Lt5EJ8CTQzY579ef9N1tT9D/Ptw/52f4U3ISVxeb2w== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: wZy9wTR82rKCGijCkdawkTCtKWktxbluo+Cn03o4Ryyyaw0C/OuiYI1zOEfGxuRHZ9JO6EORHPdX65JeTkSpi3edaz4YT+wGeeS3AM8/p18jL/tZtpYPVQE8LrHmRMi98pBclJvvtOYyy2el72EekIGDz5nxcfFoDfX3C5iXBEJvR+J7oEWF/1Fxyxf+2uAHiOwgDPItpYs8JwaoRNnG97F/wNQsgRx8JZtPcf9x7O2nuMNTUj69jMzvCqVqwgitqS8T7BXdcY77hvQBAstL7SFyV7aPefSzcrAAHTPDb/PkgVBfN766OfnZP3OPBzVmVAAGZoyx0kEsf/NCahV5Mw1j37imfEKC/sAuFOtGBMK3YVLUTj6U4bOtCcWw4aZsGdJ7qhwceExt5yinJqHaaDv6/7Pd2MNKFWacatVtqcK7a5R4q7Z54vxp9OJNTfFU/9XM/sx9XjxIYspd+Wb4L6jev8APLkrUBRONjISEP02GVWd2VHpA01XUMXajoP7q+P+VQXsBmQGhm2EslbzIMBokwt1vY4flWTDx3U0DNM/UoSxfD6S6CyS+PnJ6vYEk9PhQpMmKH0128b2h3PRj/5bBfZyr1dpF279FeQixdU0UZvO2MovE/rncHc0pirSpHKujwNQ/iuZxzhRpcoySkQILAe1pVe24G2PWCdfPJf4tasQTUtX3oTB4dyJTADO1aM8uoIAYdISCwUklgchMM48Hn/oANuex4JMEu+mBjQZBPqDIXcuHBGE4Y/d9yTk3OSLg48ctV2m2dxem5MWVpVuqXTOZXAlhvQ4XP2Bo1fxTd2dej9wZpP9ua/8KL14VUqz0nPBgJxdwX/cjJcR9lxWndZFde9/8Lx3w2AoHlj6pPMdyqjM+iHzBQVei+KpacWSCOdCLDTVdrWx2Idjdkfqzu5urwhSM2h6kRzegJePO3s0EFyGUxlZJhOHvwQIL X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7bfcd50-2003-4f80-94d5-08db57b0118c X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2023 14:56:32.4325 (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: 9FtZeMrzo+fr9H6C97+KJZobZqjqON1RrAW9s3oeOC3Dwh8H88YLm0dbjJ6MXqgsj84phdUi5hvltqypauIwIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB7427 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-18_11,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305180120 X-Proofpoint-ORIG-GUID: TjvGn7p7v5cv94hSr8X2r-ykWeNCozLt X-Proofpoint-GUID: TjvGn7p7v5cv94hSr8X2r-ykWeNCozLt X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766256752406816319?= X-GMAIL-MSGID: =?utf-8?q?1766256752406816319?= |
Series |
Maple tree mas_{next,prev}_range() and cleanup
|
|
Commit Message
Liam R. Howlett
May 18, 2023, 2:55 p.m. UTC
MAS_WARN_ON() will provide more information on the maple state and can be more useful for debugging. Use this version of WARN_ON() in the debugging code when storing to the tree. Update the printk to a pr_warn(), but this will only be printed when maple tree debug is enabled anyways. Making all print statements into one will keep them together on a busy terminal. Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> --- mm/internal.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/mm/internal.h b/mm/internal.h index 8d1a8bd00124..644fa8b761f5 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -1047,18 +1047,17 @@ static inline void vma_iter_store(struct vma_iterator *vmi, { #if defined(CONFIG_DEBUG_VM_MAPLE_TREE) - if (WARN_ON(vmi->mas.node != MAS_START && vmi->mas.index > vma->vm_start)) { - printk("%lu > %lu\n", vmi->mas.index, vma->vm_start); - printk("store of vma %lu-%lu", vma->vm_start, vma->vm_end); - printk("into slot %lu-%lu", vmi->mas.index, vmi->mas.last); - vma_iter_dump_tree(vmi); + if (MAS_WARN_ON(&vmi->mas, vmi->mas.node != MAS_START && + vmi->mas.index > vma->vm_start)) { + pr_warn("%lx > %lx\n store vma %lx-%lx\n into slot %lx-%lx\n", + vmi->mas.index, vma->vm_start, vma->vm_start, + vma->vm_end, vmi->mas.index, vmi->mas.last); } - if (WARN_ON(vmi->mas.node != MAS_START && vmi->mas.last < vma->vm_start)) { - printk("%lu < %lu\n", vmi->mas.last, vma->vm_start); - printk("store of vma %lu-%lu", vma->vm_start, vma->vm_end); - printk("into slot %lu-%lu", vmi->mas.index, vmi->mas.last); - mt_dump(vmi->mas.tree, mt_dump_hex); - vma_iter_dump_tree(vmi); + if (MAS_WARN_ON(&vmi->mas, vmi->mas.node != MAS_START && + vmi->mas.last < vma->vm_start)) { + pr_warn("%lx < %lx\nstore vma %lx-%lx\ninto slot %lx-%lx\n", + vmi->mas.last, vma->vm_start, vma->vm_start, vma->vm_end, + vmi->mas.index, vmi->mas.last); } #endif