Skip to content

ext4: new mount API conversion

Lukas Czerner linux-ext4 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest17 patches 6 repliesIn review

Changes from the cover letter

v2: rebased to current kernel

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17fs_parse: allow parameter value to be emptyfs/fs_parser.c include/linux/fs_parser.h+24 -90 replies
2/17ext4: Add fs parameter specifications for mount optionsfs/ext4/super.c+132 -00 replies
3/17ext4: move option validation to a separate functionfs/ext4/super.c+9 -20 replies
4/17ext4: Change handle_mount_opt() to use fs_parameterfs/ext4/super.c+141 -950 replies
5/17ext4: Allow sb to be NULL in ext4_msg()fs/ext4/super.c+63 -576 replies
6/17ext4: move quota configuration out of handle_mount_opt()fs/ext4/super.c+159 -890 replies
7/17ext4: check ext2/3 compatibility outside handle_mount_opt()fs/ext4/super.c+25 -160 replies
8/17ext4: get rid of super block and sbi from handle_mount_ops()fs/ext4/super.c+272 -1070 replies
9/17ext4: parse Opt_sb in handle_mount_opt()fs/ext4/super.c+199 -920 replies
10/17ext4: clean up return values in handle_mount_opt()fs/ext4/super.c+13 -80 replies
11/17ext4: add ext4_get_tree for the new mount APIfs/ext4/super.c+38 -00 replies
12/17ext4: refactor ext4_remount()fs/ext4/super.c+50 -120 replies
13/17ext4: add ext4_reconfigure for the new mount APIfs/ext4/super.c+21 -00 replies
14/17ext4: add ext4_fc_free for the new mount APIfs/ext4/super.c+15 -00 replies
15/17ext4: change token2str() to use ext4_param_specsfs/ext4/super.c+4 -40 replies
16/17ext4: switch to the new mount APIfs/ext4/super.c+34 -160 replies
17/17ext4: Remove unused code from old mount apifs/ext4/super.c+3 -2290 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/17] ext4: new mount API conversion

The following patch converts the ext4 to use the new mount API (Documentation/filesystems/mount_api.txt).

The series can be applied on top of the current mainline tree and the work is based on the patches from David Howells (thank you David). It was built and tested with xfstests and custom test for ext4 mount options that was sent over at [email protected] for inclusion into xfstests.

I've tried to avoid big unrelated changes to the original ext4_fill_super() and ext4_remount, though it could definitely use some cleanup. This can be done after the conversion with a separate patch set as I don't want to pollute the conversion with additional cleanup work.

NOTE:
There seems to be a regression somewhere in the new mount api as running generic/085 in the loop locks up the machine. I was not able to track the cause of it, but it seems to be outside of ext4. Dave is already looking into it.

Changes:
v2: rebased to current kernel

-Lukas