[PATCH] erofs: clean up erofs_show_options()

2024-05-17 Thread Hongzhen Luo
Avoid unnecessary #ifdefs and simplify the code a bit. Signed-off-by: Hongzhen Luo --- fs/erofs/internal.h | 3 --- fs/erofs/super.c| 28 2 files changed, 8 insertions(+), 23 deletions(-) diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h index

[PATCH v2] erofs: derive fsid from on-disk UUID for .statfs() if possible

2024-04-09 Thread Hongzhen Luo
Use the superblock's UUID to generate the fsid when it's non-null. Reviewed-by: Gao Xiang Reviewed-by: Jingbo Xu Signed-off-by: Hongzhen Luo --- v2: update the conversion of UUID to fsid, which looks cleaner. v1: https://lore.kernel.org/all/20240409081135.6102-1-hongz

Re: [PATCH] erofs: derive fsid from on-disk UUID for .statfs() if possible

2024-04-09 Thread Hongzhen Luo
在 2024/4/9 17:36, Jingbo Xu 写道: On 4/9/24 4:11 PM, Hongzhen Luo wrote: Use the superblock's UUID to generate the fsid when it's non-null. Signed-off-by: Hongzhen Luo --- fs/erofs/super.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/fs/erofs/super.c b

[PATCH] erofs: derive fsid from on-disk UUID for .statfs() if possible

2024-04-09 Thread Hongzhen Luo
Use the superblock's UUID to generate the fsid when it's non-null. Signed-off-by: Hongzhen Luo --- fs/erofs/super.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/fs/erofs/super.c b/fs/erofs/super.c index c0eb139adb07..83bd8ee3b5ba 100644 --- a/fs/erofs/super.c