f2fs: Add fs parameter specifications for mount options
authorHongbo Li <lihongbo22@huawei.com>
Thu, 10 Jul 2025 12:14:09 +0000 (12:14 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 22 Jul 2025 15:58:13 +0000 (15:58 +0000)
commitf2091cc188c60d6f9436b4da5bd75cda46665315
tree6075fd7a19e3d31219cb2f798e75b597e3661c12
parent5661998536af52848cc4d52a377e90368196edea
f2fs: Add fs parameter specifications for mount options

Use an array of `fs_parameter_spec` called f2fs_param_specs to
hold the mount option specifications for the new mount api.

Add constant_table structures for several options to facilitate
parsing.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
[sandeen: forward port, minor fixes and updates, more fsparam_enum]
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c