Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2688859pxb; Tue, 9 Mar 2021 08:32:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoQ0gvRxi7SOr9aL6Wz22IMRUR78D2br70DxwaxyOp8JVU59gCRMsnxjrwzriHZRR1r5Kn X-Received: by 2002:aa7:c815:: with SMTP id a21mr5184850edt.38.1615307525469; Tue, 09 Mar 2021 08:32:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1615307525; cv=pass; d=google.com; s=arc-20160816; b=E3IADloQHIO5yxWcsyvDGLafavWjC/o/C/bEzglfoAj8otHbA3Y6cZnld7Mreu+Bo4 tD4oFWPufUeeeKIQhMNcTYz4v7/+vBvV7dPJJT6k/wZJ5mAJlx/1CFrofcJPda/jFI4u 8kDLgBayCYazptiLyu3vdBbLg5Scp78K1/T9dWlrgFxJRnxDPxih/ApVW3fh9IAO1dBA JRcDbmmclVt5CVtFHgqHKpY7UrD1WJvbTVi52TPV+0pRZOUuY5iqvG2RtmTcVvBIhidg MfR8YzioBZnyVrC2Xyug65WhfTFZZFC5UWz5C/CZt3rYEGQTFGcl73WLCq77TK1hHXj+ fxYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cx4u4CqzyU8/bg10yk5Bvl3Bl81sKAITY/gse2edcuE=; b=HjzJ6mOcszgvrTG6GUKBAIvwyWoNNOcjN53oimpYaGxnayRudxxiZZ86SQmEYxA0xJ Ta4DlA5aVgiwzGVpKddsF561hjvvegVgjhR+YSf2HHkFQ4u2++a+4y8YIl8jaTWYY/Rc lfAHenGNTX+USJtKcLnzf6q/A0xM5W4fUZ5DHNoSM5YKOp2WCk5+ObDNVn0dHRVj/ann lz4Qfx7aZcYIM+4K09w2U1YROT+DwWo8Gt1KDGTY2tUyvQlcb7bLhZd5vFsfWUAP1m4i haqpTvawffD5WTTv+8hCoUvYhhpqJ8dcaV9Hf+Q5Y86hVZzgYR4InEvllYCrpiRrqfT3 XdFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=eefOIOcB; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gz11si9687760ejc.745.2021.03.09.08.31.42; Tue, 09 Mar 2021 08:32:05 -0800 (PST) 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=@Nvidia.com header.s=selector2 header.b=eefOIOcB; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231245AbhCIQaW (ORCPT + 99 others); Tue, 9 Mar 2021 11:30:22 -0500 Received: from mail-mw2nam10on2083.outbound.protection.outlook.com ([40.107.94.83]:61128 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230242AbhCIQaP (ORCPT ); Tue, 9 Mar 2021 11:30:15 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yr1nkdSsahjPD2dBxm8KcitMD7DHc/tXrJhzEynr+Es0R07U4QWRCmVT2aXxLM8QjqRl09L0W3Dq0n19d7wSvVJo1rDpQ5fNfMDH0XHJCXWC1iA+kXVeN5gDY2VEwVHv1CX2/bVWJgV14cBIGZqQr604OEm6/GIw51g4lxaD65nxF/U2a+YeDCbomeasfF8KayoPD25bJceByU48NnPrA7uNODIuHEP4h4zAQyGA6HnnIbkjOOCcyJFhfkbC6AEs2cwVJaeywHk6KzbQIJP7jD4jdHuQhNWAyRansk9CzBYywktGZ2pnvkCdUr9tbKPbPPnH33A4uC5D70oYhE0TJA== 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-SenderADCheck; bh=cx4u4CqzyU8/bg10yk5Bvl3Bl81sKAITY/gse2edcuE=; b=iTFfsH0gekC0iFRw1pLUadK1MBLNuTKOQndGe89emM/8rYTh2ift0/Ta7P/oiuiibvwOHJH+C6KXXRGLrXS7EQ73F4c8fYRF2cR/vBdj9EK6QGjrJ9KGZc1f895OoJzMPId6olbXJ+mGSfMwXTvdczghuDXx/WtcDbGeMu/voOPBWJ/PZThJ6de+glMhwgJp10eBI561YozqhfnqSOxD9Wha3fRlrryvywGKoWaKqZUVGBsA+y5JeJXNBh26GKK59bq7M992+6YxQK97oBDQ+y6qySRjPNZQe4cLzKxe/ukRD8mCBiRsxvM2TgC5RifluSy3lA31ETjgTKG8crRT4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cx4u4CqzyU8/bg10yk5Bvl3Bl81sKAITY/gse2edcuE=; b=eefOIOcBFAyS+g+SrQuqVsNWogEss2nMvBrf86frmzgL8DfVEOVFtolEch4HbQFUhVR6i2MQQPrRzLgifWugDB1BRZvHFTcGBiuiroQRFYQDGJzeG2kpJcQwqLOwnd1rBkk7QGp6JXcmMdfTArgnfiY8OJl5eRJxcFBTznupOWQ03YhjAfnNe5kuYb0iVbV/YnyjqZzPtSm1OBo8KnXR+wkHk6vVBKyZEiiZBEOdZsD6KA8FzTtq5ZULeEAHar4KX5/g4bDSwJic5DImEWlJsGzY+V5TklghySvJELC/IAOonQL41LvhaIBnHn1tcwZ2yt6ufAcWKschp0+4ofVn8Q== Authentication-Results: lst.de; dkim=none (message not signed) header.d=none;lst.de; dmarc=none action=none header.from=nvidia.com; Received: from DM6PR12MB3834.namprd12.prod.outlook.com (2603:10b6:5:14a::12) by DM5PR12MB1515.namprd12.prod.outlook.com (2603:10b6:4:6::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17; Tue, 9 Mar 2021 16:30:13 +0000 Received: from DM6PR12MB3834.namprd12.prod.outlook.com ([fe80::1c62:7fa3:617b:ab87]) by DM6PR12MB3834.namprd12.prod.outlook.com ([fe80::1c62:7fa3:617b:ab87%6]) with mapi id 15.20.3912.027; Tue, 9 Mar 2021 16:30:13 +0000 Date: Tue, 9 Mar 2021 12:30:11 -0400 From: Jason Gunthorpe To: Christoph Hellwig Cc: Al Viro , Andrew Morton , Daniel Vetter , Nadav Amit , "VMware, Inc." , "Michael S. Tsirkin" , David Hildenbrand , Minchan Kim , Nitin Gupta , Alex Williamson , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 3/9] powerpc/pseries: remove the ppc-cmm file system Message-ID: <20210309163011.GI2356281@nvidia.com> References: <20210309155348.974875-1-hch@lst.de> <20210309155348.974875-4-hch@lst.de> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210309155348.974875-4-hch@lst.de> X-Originating-IP: [142.162.115.133] X-ClientProxiedBy: MN2PR19CA0060.namprd19.prod.outlook.com (2603:10b6:208:19b::37) To DM6PR12MB3834.namprd12.prod.outlook.com (2603:10b6:5:14a::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mlx.ziepe.ca (142.162.115.133) by MN2PR19CA0060.namprd19.prod.outlook.com (2603:10b6:208:19b::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Tue, 9 Mar 2021 16:30:12 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lJfFL-00A8Q8-4m; Tue, 09 Mar 2021 12:30:11 -0400 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a770fdb8-d9f5-4c3e-2467-08d8e3189d3e X-MS-TrafficTypeDiagnostic: DM5PR12MB1515: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:962; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YB6AWWyhsRFzEZ77McjH72YwfG9fd9go4Fvx8vIcJh38nNWNOLp+DGN5WoqjALpxD7wFYdcNQn42PJyLo6ZsRnBtWr5JZiYIC1O7dxxMBJ2OSh5XCStz0vh4aEhUjE3WaqxMitanuIGJGeS6IJWIokVZHdr2mJOPy6zrC5Xgodo3OSI0gcGlBNloEL6qYOLS8z2/LihHud3FV4oh8npAZOpTHmZ8XVQhfzdUOKkO5kEIEyfBTCH+oAnjkVfDorb319W84dYZelaRVfE7aWn/bumEYw3o0z1eg4HaHZonpFXf3VtQ/25CBFpIhD/mMbGt5016nleizT5S00D0h5gfPGvpsOJ3Z4h8eN979gWpcuCxyQtaAeLhrhVXxyx4zU4ugiCDXYMnye1+Qlv8WBFRFGiyaiwdOTZLFxlo+TqVUMnKMKry3wEXtUTxCi69fdv/66bdWiztPEgD3LvEsMWO2I0DQ4MNW3yIcHNwLgopvuzxeCNssM+uRkWabXKK1bbto0+zNL+QvBHSTZU1WMICgA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB3834.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(346002)(366004)(376002)(136003)(396003)(186003)(26005)(1076003)(66556008)(66476007)(8676002)(66946007)(9746002)(83380400001)(33656002)(9786002)(4326008)(36756003)(6916009)(54906003)(5660300002)(2616005)(2906002)(478600001)(8936002)(426003)(316002)(7416002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?GeZfUjj/BY4Q5ZY/Ne5hIbcRm2fx9AhzeVfKrcWHKhjvzQYH79J+bILlAEfw?= =?us-ascii?Q?2j2zNEDIHCPzLB7G4S7p5Y7dMEA7sQyVCJtJkLn0Xm1kEQ6apuACyV5qNcqS?= =?us-ascii?Q?BdJbsywgpiHuStyxySNN2Obpe8Z778/v+gdu2w/c/SOtYv4tZl+Vaj9by/Iq?= =?us-ascii?Q?reFh/L9gxkUMYEx8f/ZKt7mTEStsfT2gsUhVYm6ZVpiWqqof5faizpmkKGzG?= =?us-ascii?Q?BCWpV/uFrPf54pgEE59RecMv2dn4Urc9MNB+xlQZ3VMnI57lGvjmEREJYmkp?= =?us-ascii?Q?Y56+ZjoMuXrX5Q4iNi9dq3rbWheVBsd3jNtebQMaAwDlv9uliD+e1OkX49pb?= =?us-ascii?Q?EiMLClszECZ8J7zgMgvKW+86hrQ+vvZ3wKmCSThp1nNPy5tRjGTymojzwyjO?= =?us-ascii?Q?DEmvzj0n+IzB/P3tm8Qvwo9fmVVKGjgfCnxpoeJqQltAxv0bLDMP0l0sFK92?= =?us-ascii?Q?nOL/D1Ubu5am3HSgtjaVeMIoVeo+ijlJtS3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exchange-CrossTenant-Network-Message-Id: a770fdb8-d9f5-4c3e-2467-08d8e3189d3e X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3834.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2021 16:30:13.3578 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: YG0fXvmgG4F/z/92kicWiUtI37//p+Oz3U8+UgFrwDdkQQo+kYm6bXhKFDMPFBa+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1515 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 09, 2021 at 04:53:42PM +0100, Christoph Hellwig wrote: > Just use the generic anon_inode file system. > > Signed-off-by: Christoph Hellwig > arch/powerpc/platforms/pseries/cmm.c | 27 ++------------------------- > 1 file changed, 2 insertions(+), 25 deletions(-) > > diff --git a/arch/powerpc/platforms/pseries/cmm.c b/arch/powerpc/platforms/pseries/cmm.c > index 6d36b858b14df1..9d07e6bea7126c 100644 > +++ b/arch/powerpc/platforms/pseries/cmm.c > @@ -6,6 +6,7 @@ > * Author(s): Brian King (brking@linux.vnet.ibm.com), > */ > > +#include > #include > #include > #include > @@ -502,19 +503,6 @@ static struct notifier_block cmm_mem_nb = { > }; > > #ifdef CONFIG_BALLOON_COMPACTION > -static struct vfsmount *balloon_mnt; > - > -static int cmm_init_fs_context(struct fs_context *fc) > -{ > - return init_pseudo(fc, PPC_CMM_MAGIC) ? 0 : -ENOMEM; Should we clean these unusued magic constants too? include/uapi/linux/magic.h:#define PPC_CMM_MAGIC 0xc7571590 Jason