linux-stable/fs/ext4
Lukas Czerner 7edfd85b1f ext4: Completely separate options parsing and sb setup
The new mount api separates option parsing and super block setup into
two distinct steps and so we need to separate the options parsing out of
the ext4_fill_super() and ext4_remount().

In order to achieve this we have to create new ext4_fill_super() and
ext4_remount() functions which will serve its purpose only until we
actually do convert to the new api (as such they are only temporary for
this patch series) and move the option parsing out of the old function
which will now be renamed to __ext4_fill_super() and __ext4_remount().

There is a small complication in the fact that while the mount option
parsing is going to happen before we get to __ext4_fill_super(), the
mount options stored in the super block itself needs to be applied
first, before the user specified mount options.

So with this patch we're going through the following sequence:

- parse user provided options (including sb block)
- initialize sbi and store s_sb_block if provided
- in __ext4_fill_super()
	- read the super block
	- parse and apply options specified in s_mount_opts
	- check and apply user provided options stored in ctx
	- continue with the regular ext4_fill_super operation

It's not exactly the most elegant solution, but if we still want to
support s_mount_opts we have to do it in this order.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Link: https://lore.kernel.org/r/20211027141857.33657-10-lczerner@redhat.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2021-12-09 14:11:08 -05:00
..
.kunitconfig
acl.c
acl.h
balloc.c
bitmap.c
block_validity.c
dir.c ext4: fix potential infinite loop in ext4_dx_readdir() 2021-10-01 00:05:09 -04:00
ext4.h ext4: convert from atomic_t to refcount_t on ext4_io_end->count 2021-11-04 10:33:24 -04:00
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
extents.c ext4: inline data inode fast commit replay fixes 2021-11-04 10:34:39 -04:00
extents_status.c
extents_status.h
fast_commit.c ext4: inline data inode fast commit replay fixes 2021-11-04 10:34:39 -04:00
fast_commit.h
file.c gfs2: Fix mmap + page fault deadlocks 2021-11-02 12:25:03 -07:00
fsmap.c
fsmap.h
fsync.c
hash.c
ialloc.c
indirect.c
inline.c ext4: remove extent cache entries when truncating inline data 2021-09-09 10:52:05 -04:00
inode-test.c
inode.c ext4: prevent getting empty inode buffer 2021-11-04 10:33:25 -04:00
ioctl.c In addition to some ext4 bug fixes and cleanups, this cycle we add the 2021-09-02 09:37:09 -07:00
Kconfig
Makefile
mballoc.c ext4: scope ret locally in ext4_try_to_trim_range() 2021-11-04 10:33:25 -04:00
mballoc.h
migrate.c
mmp.c
move_extent.c
namei.c ext4: fix boolreturn.cocci warnings in fs/ext4/name.c 2021-11-04 10:33:25 -04:00
orphan.c
page-io.c ext4: convert from atomic_t to refcount_t on ext4_io_end->count 2021-11-04 10:33:24 -04:00
readpage.c
resize.c
super.c ext4: Completely separate options parsing and sb setup 2021-12-09 14:11:08 -05:00
symlink.c
sysfs.c
truncate.h
verity.c
xattr.c
xattr.h
xattr_hurd.c
xattr_security.c
xattr_trusted.c
xattr_user.c