erofs: decouple basic mount options from fs_context
authorGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 7 Oct 2021 07:02:23 +0000 (15:02 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 17 Oct 2021 15:57:15 +0000 (23:57 +0800)
commite62424651f43cb37e17ca26a7ee9ee42675f24bd
treec3b59aaca963c5fa4c16131d4fcd4ec2a39d3b20
parent5b6e7e120e716231a0bf9ad201438d72473e396d
erofs: decouple basic mount options from fs_context

Previously, EROFS mount options are all in the basic types, so
erofs_fs_context can be directly copied with assignment. However,
when the multiple device feature is introduced, it's hard to handle
multiple device information like the other basic mount options.

Let's separate basic mount option usage from fs_context, thus
multiple device information can be handled gracefully then.

No logic changes.

Link: https://lore.kernel.org/r/20211007070224.12833-1-hsiangkao@linux.alibaba.com
Reviewed-by: Chao Yu <chao@kernel.org>
Reviewed-by: Liu Bo <bo.liu@linux.alibaba.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/inode.c
fs/erofs/internal.h
fs/erofs/super.c
fs/erofs/xattr.c
fs/erofs/zdata.c