Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp12690170ybl; Sat, 28 Dec 2019 18:48:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzCquoQhj3CZb59rtfbtIqLonQlsME484+UbLMTzqXK6u5ohpoMykIhM4Hy1veFzqz+GtWl X-Received: by 2002:a9d:7e99:: with SMTP id m25mr63498137otp.212.1577587695165; Sat, 28 Dec 2019 18:48:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577587695; cv=none; d=google.com; s=arc-20160816; b=WF9MKRiibpzAYCsa785DSnz/gQBRaSqwNd7u/KID+JZmqGD0WP7bNiJKCVOzhoR3eY vhT8z6s45bCmp59N9el6KdCZg6ovjrpKT7P8DGd5jKMUwumuFalcDWjd69izVTw3irAF 4TbFhvwqwaAYvT012bUQCM41NVdFkULTUTZLLfbwrXn+XaQ9pfmTKqpenOtroB+1OV9H c2G8P+4C7PpovEmC/XP+rsyLJfYn351d4KPdG1XdIf9Dh6Z8ehAp841806YvRgSCRwNN Ey49KkA/mFFyq4Ch/hEcWsYSBCNh63r8hc128DaxUR5xBK/A29grMrrjmZT6JH3NoIMq CvGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6/Q6SNynxNQ8G8c617T7+WEqsKRr7oL+1YtlRaUeq+g=; b=QAcQur4LxmIdoqBokShxMOzy8rICcy5brRYPhw1WaSfGTbvmGysiVnb/FyNUC9w42z ADHkiElT07u9PHOcD5PCOfwWsYeVraJa5xAq0ENb6GKvEaCkjO6fR79GFWEHDGwmDqIr 03tYR+GQ0j208b7w+8TqkLCBLeEAjitWjsddx0Yqh/+IApyF3fdTVkpMe6sFaozmFX99 UfzXe37XnvRGrSVcP8NKvOlpJ0AjXSPE+rQSqgg59qmjMexJ7TsQhj+KhNxDDdB25veo rtbRMlNtEbn1Okpbmd3ETQ9aqn1PCyAdug/q/oT+4pGiMTE8ZlJP+vTYmRLweq5GBzzs cGfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b="uFXDgE/6"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si21157079oto.85.2019.12.28.18.47.42; Sat, 28 Dec 2019 18:48:15 -0800 (PST) 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; dkim=pass header.i=@aol.com header.s=a2048 header.b="uFXDgE/6"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726509AbfL2CqX (ORCPT + 99 others); Sat, 28 Dec 2019 21:46:23 -0500 Received: from sonic303-50.consmr.mail.gq1.yahoo.com ([98.137.64.232]:41285 "EHLO sonic303-50.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbfL2CqW (ORCPT ); Sat, 28 Dec 2019 21:46:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1577587580; bh=6/Q6SNynxNQ8G8c617T7+WEqsKRr7oL+1YtlRaUeq+g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=uFXDgE/66xF3EsVJ5mGL8atE1oRVvcYc6hPaDiBcac66mzEHDWyJ8RhU3AmPuSlOxO8e0TwAFolvxlm3CMZ/snPwUa5Rtrx06Z+y/Hi1e66j5CbsllR/gzCnrSe/Jja7OLU5BwLnGStWQJwhVccBDTfaHyPP8tbbHXXW3PpAvqZasMJ3gzDSYt50VVZuedsHjduwJlRWMATPZMUkO52QBn5rfUWP5bz+JLtXE0Tvw4xkt4ggyl7uu0Rn1b2MzFhbaCg1Nf31LxmP3tK6PqfTzJP71i+7vxQssSjipJ9lAndoXSxUf9zGNflDuEuh6/Kj9pZbm6rqVo3y+xJKwiogQA== X-YMail-OSG: N_6BpMEVRDvd.miR6A7lED5GPdAEx7ojsA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Sun, 29 Dec 2019 02:46:20 +0000 Received: by smtp424.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9f863a345b562991edc35c48481656f9; Sun, 29 Dec 2019 02:44:18 +0000 (UTC) Date: Sun, 29 Dec 2019 10:44:08 +0800 From: Gao Xiang To: Al Viro Cc: Gao Xiang , linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org, David Howells , Miao Xie Subject: Re: [PATCH RESEND] erofs: convert to use the new mount fs_context api Message-ID: <20191229024406.GA2215@hsiangkao-HP-ZHAN-66-Pro-G1> References: <20191226022519.53386-1-yuchao0@huawei.com> <20191227035016.GA142350@architecture4> <20191228212156.GU4203@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191228212156.GU4203@ZenIV.linux.org.uk> User-Agent: Mutt/1.10.1 (2018-07-13) X-Mailer: WebService/1.1.14873 hermes Apache-HttpAsyncClient/4.1.4 (Java/1.8.0_181) Content-Length: 2288 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 28, 2019 at 09:21:56PM +0000, Al Viro wrote: > On Fri, Dec 27, 2019 at 11:50:16AM +0800, Gao Xiang wrote: > > Hi Al, > > > > Greeting, we plan to convert erofs to new mount api for 5.6 > > > > and I just notice your branch > > https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git/log/?h=untested.fs_parse > > > > do a lot further work on fs context (e.g. "get rid of ->enums", > > "remove fs_parameter_description name field" and switch to > > use XXXfc() instead of XXXf() with prefixed string). > > > > Does it plan for 5.6 as well? If yes, we will update this patch > > based on the latest branch and maybe have chance to go though > > your tree if it can? > > FWIW, I would add the following to what you've already mentioned: Thanks for your reply and confirmation. > > > > +static const struct fs_parameter_spec erofs_param_specs[] = { > > > + fsparam_flag("user_xattr", Opt_user_xattr), > > > + fsparam_flag("nouser_xattr", Opt_nouser_xattr), > > > + fsparam_flag("acl", Opt_acl), > > > + fsparam_flag("noacl", Opt_noacl), > better off as > fsparam_flag_no("user_xattr", Opt_user_xattr), > fsparam_flag_no("acl", Opt_acl), Got it. We didn't notice this new way. Will fix in the updated version. > > > > + case Opt_user_xattr: > if (result.boolean) > set_opt(sbi, XATTR_USER); > else > clear_opt(sbi, XATTR_USER); > > > + break; > .... > > > + default: > return -ENOPARAM; Got it. > > BTW, what's the point of using invalf() in contexts where > the return value is ignored? Why not simply go for errorf() > (or errorfc(), for that matter)? OK, We will check all invalf()s soon. And may I ask one more question about this... I'm a bit confused, since we have erofs_err() which print sb->s_id as well, so which one (errorfc or erofs_err) is more perferred to choose in especially fill_super()? > > I do plan that branch (or an equivalent, as far as filesystems > are concerned - there might be a bit of additional rework in > the beginning + currently missing modifications of docs) for > 5.6. So updated patch would be welcome - I can do that myself, > but if you can rebase it on top of that branch it would save > time. Yes, we will update this patch based on the latest branch later for this convert. Thanks, Gao Xiang