From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BD55C43381 for ; Fri, 15 Mar 2019 00:22:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 417EA21873 for ; Fri, 15 Mar 2019 00:22:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728104AbfCOAWU (ORCPT ); Thu, 14 Mar 2019 20:22:20 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:41612 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727603AbfCOAWT (ORCPT ); Thu, 14 Mar 2019 20:22:19 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2F0KHwN118589 for ; Thu, 14 Mar 2019 20:22:18 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0b-001b2d01.pphosted.com with ESMTP id 2r7wq21khr-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 14 Mar 2019 20:22:17 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 15 Mar 2019 00:22:16 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 15 Mar 2019 00:22:13 -0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x2F0MC3k55443622 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 15 Mar 2019 00:22:12 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 616F842042; Fri, 15 Mar 2019 00:22:12 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 115844203F; Fri, 15 Mar 2019 00:22:12 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 15 Mar 2019 00:22:12 +0000 (GMT) Received: from [9.81.215.45] (unknown [9.81.215.45]) (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id 6C7D3A00E9; Fri, 15 Mar 2019 11:22:10 +1100 (AEDT) Subject: Re: [PATCH 13/38] vfs: Convert cxl to fs_context To: David Howells , viro@zeniv.linux.org.uk Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Frederic Barrat , linuxppc-dev@lists.ozlabs.org References: <155257972443.13720.11743171471060355965.stgit@warthog.procyon.org.uk> <155257984031.13720.1656009200478611751.stgit@warthog.procyon.org.uk> From: Andrew Donnellan Date: Fri, 15 Mar 2019 11:22:09 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <155257984031.13720.1656009200478611751.stgit@warthog.procyon.org.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19031500-0020-0000-0000-00000323762A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19031500-0021-0000-0000-000021757CD0 Message-Id: <67feed82-324b-075d-a447-b3fe81dc73d0@au1.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-14_13:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903150000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/3/19 3:10 am, David Howells wrote: > Signed-off-by: David Howells > cc: Frederic Barrat > cc: Andrew Donnellan > cc: linuxppc-dev@lists.ozlabs.org Acked-by: Andrew Donnellan > --- > > 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, > }; > > -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnellan@au1.ibm.com IBM Australia Limited