Skip to content

f2fs: first steps towards mount API conversion

Eric Sandeen linux-f2fs-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 18 repliesIn review 7 of 9 applied

Patches in v1 7 of 9 applied

#Subject and filesSizeRepliesApplied
1/9f2fs: use f2fs_sb_has_device_alias during option parsingfs/f2fs/super.c+1 -11 replyApplied
2/9f2fs: consolidate unsupported option handling errorsfs/f2fs/super.c+4 -141 replyApplied
3/9f2fs: factor out an f2fs_default_check functionfs/f2fs/super.c+14 -24 repliesApplied
4/9f2fs: make INLINECRYPT a mount option flagfs/f2fs/f2fs.h fs/f2fs/super.c+5 -11 reply
5/9f2fs: make LAZYTIME a mount option flagfs/f2fs/f2fs.h fs/f2fs/super.c+13 -31 reply
6/9f2fs: Pass sbi rather than sb to f2fs_set_test_dummy_encryptionfs/f2fs/super.c+2 -31 replyApplied
7/9f2fs: defer readonly check vs norecoveryfs/f2fs/super.c+7 -31 replyApplied
8/9f2fs: pass sbi rather than sb to quota qf_name helpersfs/f2fs/super.c+10 -101 replyApplied
9/9f2fs: pass sbi rather than sb to parse_options()fs/f2fs/super.c+3 -41 replyApplied

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchChao Yu
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [f2fs-dev] [PATCH 0/9] f2fs: first steps towards mount API conversion

I have been struggling to get to a good series to convert f2fs to the new mount API. f2fs is more complex, because much of the option parsing assumes that the superblock has already been read from disk, and uses that to test various on-disk features, etc. All of those tests will need to be moved to after parsing is complete, and this series is just a start.

The first two patches in this series are incidental, just things I noticed when working on this. They are not critical to the conversion, but they may be desirable anyway.

The rest of the patches move towards removal of explicit references to *sb in parse_options(), using *sbi instead. (The full conversion may use a private context structure instead of *sbi, since the *sbi is rather large.)

It's up to you if you want to merge these now or not, but I thought I'd share the direction I was moving, to get some feedback about whether this seems to make sense. Next steps would be moving more of the feature checks to later in the mount process, after parsing is complete.

This has been tested with random combinations of valid and invalid mount options, but it has not been tested with a wide range of on-disk features. My testing did not turn up any differences in behavior. (I also did explicit testing of direct mount syscalls with "lazytime" as an option string, keeping in mind the earlier regression there.)

Thanks,
-Eric

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel