Skip to contentSkip to conversation

erofs: convert to use the new mount fs_context api

PATCH New Gao Xiang 1 participant 1 message Feb 3, 2020 EROFS file system

lore
Share & tools
lore

Gao Xiang

author
#0 lore raw

PATCH v4 1/1 erofs: convert to use the new mount fs_context api

From: Chao Yu <[email protected]>

Convert the erofs to use new internal mount API as the old one will be obsoleted and removed. This allows greater flexibility in communication of mount parameters between userspace, the VFS and the filesystem.

See Documentation/filesystems/mount_api.txt for more information.

---
changes since v3:
- rebased on merge.nfs-fs_parse branch;
- add missing trailing NIL entry {} to constant_table.

Hi Al,
Friendly ping... Would you kindly consider this?

Thank you very much!
Gao Xiang

 fs/erofs/internal.h |   2 +-
 fs/erofs/super.c    | 234 +++++++++++++++++++-------------------------
 2 files changed, 102 insertions(+), 134 deletions(-)
fs/erofs/internal.h +1 -1
index 1ed5beff7d11..a5fac25db6af 100644
@@ -102,13 +102,13 @@ struct erofs_sb_info {
 #define set_opt(sbi, option)	((sbi)->mount_opt |= EROFS_MOUNT_##option)
 #define test_opt(sbi, option)	((sbi)->mount_opt & EROFS_MOUNT_##option)
 
-#ifdef CONFIG_EROFS_FS_ZIP
 enum {
 	EROFS_ZIP_CACHE_DISABLED,
 	EROFS_ZIP_CACHE_READAHEAD,
 	EROFS_ZIP_CACHE_READAROUND
 };
 
+#ifdef CONFIG_EROFS_FS_ZIP
 #define EROFS_LOCKED_MAGIC     (INT_MIN | 0xE0F510CCL)
 
 /* basic unit of the workstation of a super_block */
fs/erofs/super.c +101 -133

309 lines not on this page · raw message

Signature · 1 line
2.17.1