* [PATCH 0/2] erofs: misc cleanups for fscache mode
@ 2023-01-11 8:15 Jingbo Xu
2023-01-11 8:15 ` [PATCH 1/2] erofs: add documentation for 'domain_id' mount option Jingbo Xu
2023-01-11 8:15 ` [PATCH 2/2] erofs: clean up parsing of fscache related options Jingbo Xu
0 siblings, 2 replies; 9+ messages in thread
From: Jingbo Xu @ 2023-01-11 8:15 UTC (permalink / raw)
To: xiang, chao, linux-erofs; +Cc: huyue2
Some trivial cleanups for fscache mode.
Jingbo Xu (2):
erofs: add documentation for 'domain_id' mount option
erofs: clean up parsing of fscache related options
Documentation/filesystems/erofs.rst | 3 +++
fs/erofs/super.c | 13 ++++++-------
2 files changed, 9 insertions(+), 7 deletions(-)
--
2.19.1.6.gb485710b
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/2] erofs: add documentation for 'domain_id' mount option
2023-01-11 8:15 [PATCH 0/2] erofs: misc cleanups for fscache mode Jingbo Xu
@ 2023-01-11 8:15 ` Jingbo Xu
2023-01-11 8:38 ` [External] " Jia Zhu
2023-01-11 8:46 ` Gao Xiang
2023-01-11 8:15 ` [PATCH 2/2] erofs: clean up parsing of fscache related options Jingbo Xu
1 sibling, 2 replies; 9+ messages in thread
From: Jingbo Xu @ 2023-01-11 8:15 UTC (permalink / raw)
To: xiang, chao, linux-erofs; +Cc: huyue2
The share domain feature for fscache mode has been merged, and let's add
documentation for 'domain_id' mount option.
Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
---
Documentation/filesystems/erofs.rst | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/filesystems/erofs.rst b/Documentation/filesystems/erofs.rst
index 067fd1670b1f..958cad2c4997 100644
--- a/Documentation/filesystems/erofs.rst
+++ b/Documentation/filesystems/erofs.rst
@@ -120,6 +120,9 @@ dax={always,never} Use direct access (no page cache). See
dax A legacy option which is an alias for ``dax=always``.
device=%s Specify a path to an extra device to be used together.
fsid=%s Specify a filesystem image ID for Fscache back-end.
+domain_id=%s Specify a domain ID for Fscache back-end. The blob
+ images are shared among filesystem instances in the same
+ domain.
=================== =========================================================
Sysfs Entries
--
2.19.1.6.gb485710b
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/2] erofs: clean up parsing of fscache related options
2023-01-11 8:15 [PATCH 0/2] erofs: misc cleanups for fscache mode Jingbo Xu
2023-01-11 8:15 ` [PATCH 1/2] erofs: add documentation for 'domain_id' mount option Jingbo Xu
@ 2023-01-11 8:15 ` Jingbo Xu
2023-01-11 9:09 ` [External] " Jia Zhu
` (2 more replies)
1 sibling, 3 replies; 9+ messages in thread
From: Jingbo Xu @ 2023-01-11 8:15 UTC (permalink / raw)
To: xiang, chao, linux-erofs; +Cc: huyue2
... to avoid the mess of conditional preprocessing as we are continually
adding fscache related mount options.
Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
---
fs/erofs/super.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/fs/erofs/super.c b/fs/erofs/super.c
index 481788c24a68..626a615dafc2 100644
--- a/fs/erofs/super.c
+++ b/fs/erofs/super.c
@@ -577,26 +577,25 @@ static int erofs_fc_parse_param(struct fs_context *fc,
}
++ctx->devs->extra_devices;
break;
- case Opt_fsid:
#ifdef CONFIG_EROFS_FS_ONDEMAND
+ case Opt_fsid:
kfree(ctx->fsid);
ctx->fsid = kstrdup(param->string, GFP_KERNEL);
if (!ctx->fsid)
return -ENOMEM;
-#else
- errorfc(fc, "fsid option not supported");
-#endif
break;
case Opt_domain_id:
-#ifdef CONFIG_EROFS_FS_ONDEMAND
kfree(ctx->domain_id);
ctx->domain_id = kstrdup(param->string, GFP_KERNEL);
if (!ctx->domain_id)
return -ENOMEM;
+ break;
#else
- errorfc(fc, "domain_id option not supported");
-#endif
+ case Opt_fsid:
+ case Opt_domain_id:
+ errorfc(fc, "%s option not supported", erofs_fs_parameters[opt].name);
break;
+#endif
default:
return -ENOPARAM;
}
--
2.19.1.6.gb485710b
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [External] [PATCH 1/2] erofs: add documentation for 'domain_id' mount option
2023-01-11 8:15 ` [PATCH 1/2] erofs: add documentation for 'domain_id' mount option Jingbo Xu
@ 2023-01-11 8:38 ` Jia Zhu
2023-01-11 8:46 ` Gao Xiang
1 sibling, 0 replies; 9+ messages in thread
From: Jia Zhu @ 2023-01-11 8:38 UTC (permalink / raw)
To: Jingbo Xu, xiang, chao, linux-erofs
在 2023/1/11 16:15, Jingbo Xu 写道:
> The share domain feature for fscache mode has been merged, and let's add
> documentation for 'domain_id' mount option.
>
> Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Jia Zhu <zhujia.zj@bytedance.com>
Thanks.
> ---
> Documentation/filesystems/erofs.rst | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/filesystems/erofs.rst b/Documentation/filesystems/erofs.rst
> index 067fd1670b1f..958cad2c4997 100644
> --- a/Documentation/filesystems/erofs.rst
> +++ b/Documentation/filesystems/erofs.rst
> @@ -120,6 +120,9 @@ dax={always,never} Use direct access (no page cache). See
> dax A legacy option which is an alias for ``dax=always``.
> device=%s Specify a path to an extra device to be used together.
> fsid=%s Specify a filesystem image ID for Fscache back-end.
> +domain_id=%s Specify a domain ID for Fscache back-end. The blob
> + images are shared among filesystem instances in the same
> + domain.
> =================== =========================================================
>
> Sysfs Entries
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] erofs: add documentation for 'domain_id' mount option
2023-01-11 8:15 ` [PATCH 1/2] erofs: add documentation for 'domain_id' mount option Jingbo Xu
@ 2023-01-11 8:46 ` Gao Xiang
2023-01-11 8:46 ` Gao Xiang
1 sibling, 0 replies; 9+ messages in thread
From: Gao Xiang @ 2023-01-11 8:46 UTC (permalink / raw)
To: Jingbo Xu, xiang, chao, linux-erofs; +Cc: huyue2, linux-doc
On 2023/1/11 16:15, Jingbo Xu wrote:
> The share domain feature for fscache mode has been merged, and let's add
> documentation for 'domain_id' mount option.
Since the EROFS share domain feature for fscache mode has been available
since Linux v6.1, let's add documentation for 'domain_id' mount option.
Cc: linux-doc@vger.kernel.org
>
> Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
> ---
> Documentation/filesystems/erofs.rst | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/filesystems/erofs.rst b/Documentation/filesystems/erofs.rst
> index 067fd1670b1f..958cad2c4997 100644
> --- a/Documentation/filesystems/erofs.rst
> +++ b/Documentation/filesystems/erofs.rst
> @@ -120,6 +120,9 @@ dax={always,never} Use direct access (no page cache). See
> dax A legacy option which is an alias for ``dax=always``.
> device=%s Specify a path to an extra device to be used together.
> fsid=%s Specify a filesystem image ID for Fscache back-end.
> +domain_id=%s Specify a domain ID for Fscache back-end. The blob
> + images are shared among filesystem instances in the same
> + domain.
domain_id=%s Specify a domain ID in fscache mode so that different images
with the same blobs under a given domain ID can share storage.
Thanks,
Gao Xiang
> =================== =========================================================
>
> Sysfs Entries
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] erofs: add documentation for 'domain_id' mount option
@ 2023-01-11 8:46 ` Gao Xiang
0 siblings, 0 replies; 9+ messages in thread
From: Gao Xiang @ 2023-01-11 8:46 UTC (permalink / raw)
To: Jingbo Xu, xiang, chao, linux-erofs; +Cc: huyue2, zhujia.zj, linux-doc
On 2023/1/11 16:15, Jingbo Xu wrote:
> The share domain feature for fscache mode has been merged, and let's add
> documentation for 'domain_id' mount option.
Since the EROFS share domain feature for fscache mode has been available
since Linux v6.1, let's add documentation for 'domain_id' mount option.
Cc: linux-doc@vger.kernel.org
>
> Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
> ---
> Documentation/filesystems/erofs.rst | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/filesystems/erofs.rst b/Documentation/filesystems/erofs.rst
> index 067fd1670b1f..958cad2c4997 100644
> --- a/Documentation/filesystems/erofs.rst
> +++ b/Documentation/filesystems/erofs.rst
> @@ -120,6 +120,9 @@ dax={always,never} Use direct access (no page cache). See
> dax A legacy option which is an alias for ``dax=always``.
> device=%s Specify a path to an extra device to be used together.
> fsid=%s Specify a filesystem image ID for Fscache back-end.
> +domain_id=%s Specify a domain ID for Fscache back-end. The blob
> + images are shared among filesystem instances in the same
> + domain.
domain_id=%s Specify a domain ID in fscache mode so that different images
with the same blobs under a given domain ID can share storage.
Thanks,
Gao Xiang
> =================== =========================================================
>
> Sysfs Entries
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [External] [PATCH 2/2] erofs: clean up parsing of fscache related options
2023-01-11 8:15 ` [PATCH 2/2] erofs: clean up parsing of fscache related options Jingbo Xu
@ 2023-01-11 9:09 ` Jia Zhu
2023-01-12 5:31 ` Gao Xiang
2023-01-12 5:56 ` Yue Hu
2 siblings, 0 replies; 9+ messages in thread
From: Jia Zhu @ 2023-01-11 9:09 UTC (permalink / raw)
To: Jingbo Xu, xiang, chao, linux-erofs
在 2023/1/11 16:15, Jingbo Xu 写道:
> ... to avoid the mess of conditional preprocessing as we are continually
> adding fscache related mount options.
>
> Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Jia Zhu <zhujia.zj@bytedance.com>
Thanks.
> ---
> fs/erofs/super.c | 13 ++++++-------
> 1 file changed, 6 insertions(+), 7 deletions(-)
>
> diff --git a/fs/erofs/super.c b/fs/erofs/super.c
> index 481788c24a68..626a615dafc2 100644
> --- a/fs/erofs/super.c
> +++ b/fs/erofs/super.c
> @@ -577,26 +577,25 @@ static int erofs_fc_parse_param(struct fs_context *fc,
> }
> ++ctx->devs->extra_devices;
> break;
> - case Opt_fsid:
> #ifdef CONFIG_EROFS_FS_ONDEMAND
> + case Opt_fsid:
> kfree(ctx->fsid);
> ctx->fsid = kstrdup(param->string, GFP_KERNEL);
> if (!ctx->fsid)
> return -ENOMEM;
> -#else
> - errorfc(fc, "fsid option not supported");
> -#endif
> break;
> case Opt_domain_id:
> -#ifdef CONFIG_EROFS_FS_ONDEMAND
> kfree(ctx->domain_id);
> ctx->domain_id = kstrdup(param->string, GFP_KERNEL);
> if (!ctx->domain_id)
> return -ENOMEM;
> + break;
> #else
> - errorfc(fc, "domain_id option not supported");
> -#endif
> + case Opt_fsid:
> + case Opt_domain_id:
> + errorfc(fc, "%s option not supported", erofs_fs_parameters[opt].name);
> break;
> +#endif
> default:
> return -ENOPARAM;
> }
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] erofs: clean up parsing of fscache related options
2023-01-11 8:15 ` [PATCH 2/2] erofs: clean up parsing of fscache related options Jingbo Xu
2023-01-11 9:09 ` [External] " Jia Zhu
@ 2023-01-12 5:31 ` Gao Xiang
2023-01-12 5:56 ` Yue Hu
2 siblings, 0 replies; 9+ messages in thread
From: Gao Xiang @ 2023-01-12 5:31 UTC (permalink / raw)
To: Jingbo Xu, xiang, chao, linux-erofs; +Cc: huyue2
On 2023/1/11 16:15, Jingbo Xu wrote:
> ... to avoid the mess of conditional preprocessing as we are continually
> adding fscache related mount options.
>
> Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewd-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Thanks,
Gao Xiang
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] erofs: clean up parsing of fscache related options
2023-01-11 8:15 ` [PATCH 2/2] erofs: clean up parsing of fscache related options Jingbo Xu
2023-01-11 9:09 ` [External] " Jia Zhu
2023-01-12 5:31 ` Gao Xiang
@ 2023-01-12 5:56 ` Yue Hu
2 siblings, 0 replies; 9+ messages in thread
From: Yue Hu @ 2023-01-12 5:56 UTC (permalink / raw)
To: Jingbo Xu; +Cc: linux-erofs
On Wed, 11 Jan 2023 16:15:47 +0800
Jingbo Xu <jefflexu@linux.alibaba.com> wrote:
> ... to avoid the mess of conditional preprocessing as we are continually
> adding fscache related mount options.
>
> Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Yue Hu <huyue2@coolpad.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-01-12 5:51 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-11 8:15 [PATCH 0/2] erofs: misc cleanups for fscache mode Jingbo Xu
2023-01-11 8:15 ` [PATCH 1/2] erofs: add documentation for 'domain_id' mount option Jingbo Xu
2023-01-11 8:38 ` [External] " Jia Zhu
2023-01-11 8:46 ` Gao Xiang
2023-01-11 8:46 ` Gao Xiang
2023-01-11 8:15 ` [PATCH 2/2] erofs: clean up parsing of fscache related options Jingbo Xu
2023-01-11 9:09 ` [External] " Jia Zhu
2023-01-12 5:31 ` Gao Xiang
2023-01-12 5:56 ` Yue Hu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.