Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3967029imc; Thu, 14 Mar 2019 09:12:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyk2fXuzwpZ++e4+Cik/5DreETxqrISQOjo+/+/Lwj4xVkZrt8X2lcLzoJYtMWqbR8M42dm X-Received: by 2002:a63:780e:: with SMTP id t14mr28549828pgc.276.1552579933677; Thu, 14 Mar 2019 09:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552579933; cv=none; d=google.com; s=arc-20160816; b=Hb7b18a0/T0MFNeZnJoEW185BrdE8ythf0CVQPsDNgvy2OvyQOD1PICAw8eD9Kh17B q5FHq8ooPpoyMUP2Md60KMaaGlIZ1fKWioPygcyTfhnYw/D+UU8W+99JH8wAQ/5iQh2B KHxcSlJev5qff1hURYhzQg0cjsjBbSK9BIO2S9TzI08ztG0HG3+EJMkQIRs7q77OxM/o ifWJY7xRuYASsEHw5tQ/UJ5n/Gy3mE7S9KftJ818pMJyXGbWptsvMLiQaHAh8kOQrD4r AR7k/oITrm4HrRoEWM/IMZ8J5aqGZZR5yhqh3E3moI5Ly2IcqHsy+3GI73KPXD20GT12 vMSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:organization; bh=9nN0+uePOhOlUQ4UDYonASHx05BMbOoxD3R8S+Ys2c0=; b=eTAvaDCGpYfZOuyzJjVocQrO6FjuJoED68Y2VxVd7UQU9zgLOVpPddc6zaVMB6Ifh2 jao3RXssw6c1NDniOQ+SVM165mCATPojEjkuBS3eujZX/lcgbIDtm9a4YwY4hPYwKXy2 sa3TX085K1MNkTQHwrEiKO3PNvOd1FC0OcZJRb1zBqo4MjsRofY7WDmwMb+HG2G7OO8K dgv0pPEWVW63xtBjqenHRSrPgGUZA+rxXNgfjqZrPYKBaA9c0/R7irMkHruierY7LDul 30eNDKiM+ibKyvZirXkh4d1jXS3NYooPVwWrrUtwRIWAk0fnSSnAXDJiNOslfk3VxZax GkWg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8si13731083plv.137.2019.03.14.09.11.58; Thu, 14 Mar 2019 09:12:13 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727822AbfCNQKn (ORCPT + 99 others); Thu, 14 Mar 2019 12:10:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53668 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727357AbfCNQKm (ORCPT ); Thu, 14 Mar 2019 12:10:42 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7CE24757E7; Thu, 14 Mar 2019 16:10:42 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-121-148.rdu2.redhat.com [10.10.121.148]) by smtp.corp.redhat.com (Postfix) with ESMTP id 28CBE1001DEA; Thu, 14 Mar 2019 16:10:41 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 13/38] vfs: Convert cxl to fs_context From: David Howells To: viro@zeniv.linux.org.uk Cc: Frederic Barrat , Andrew Donnellan , linuxppc-dev@lists.ozlabs.org, dhowells@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 14 Mar 2019 16:10:40 +0000 Message-ID: <155257984031.13720.1656009200478611751.stgit@warthog.procyon.org.uk> In-Reply-To: <155257972443.13720.11743171471060355965.stgit@warthog.procyon.org.uk> References: <155257972443.13720.11743171471060355965.stgit@warthog.procyon.org.uk> User-Agent: StGit/unknown-version MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 14 Mar 2019 16:10:42 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: David Howells cc: Frederic Barrat cc: Andrew Donnellan cc: linuxppc-dev@lists.ozlabs.org --- drivers/misc/cxl/api.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/misc/cxl/api.c b/drivers/misc/cxl/api.c index 750470ef2049..395e9a88e6ba 100644 --- a/drivers/misc/cxl/api.c +++ b/drivers/misc/cxl/api.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -41,17 +42,16 @@ static const struct dentry_operations cxl_fs_dops = { .d_dname = simple_dname, }; -static struct dentry *cxl_fs_mount(struct file_system_type *fs_type, int flags, - const char *dev_name, void *data) +static int cxl_fs_init_fs_context(struct fs_context *fc) { - return mount_pseudo(fs_type, "cxl:", NULL, &cxl_fs_dops, - CXL_PSEUDO_FS_MAGIC); + return vfs_init_pseudo_fs_context(fc, "cxl:", NULL, NULL, + &cxl_fs_dops, CXL_PSEUDO_FS_MAGIC); } static struct file_system_type cxl_fs_type = { .name = "cxl", .owner = THIS_MODULE, - .mount = cxl_fs_mount, + .init_fs_context = cxl_fs_init_fs_context, .kill_sb = kill_anon_super, };