]> git.baikalelectronics.ru Git - kernel.git/commit
devtmpfs regression fix: reconfigure on each mount
authorNeilBrown <neilb@suse.de>
Sun, 16 Jan 2022 22:07:26 +0000 (09:07 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 17 Jan 2022 07:40:29 +0000 (09:40 +0200)
commit2a19ea8feb74ca37e101b04aa762e007e03f4efc
treeb306cc18579ec7aa978780bade0ade6da1cf801d
parent9265159c8125db6763d940a9756979474184f64d
devtmpfs regression fix: reconfigure on each mount

Prior to Linux v5.4 devtmpfs used mount_single() which treats the given
mount options as "remount" options, so it updates the configuration of
the single super_block on each mount.

Since that was changed, the mount options used for devtmpfs are ignored.
This is a regression which affect systemd - which mounts devtmpfs with
"-o mode=755,size=4m,nr_inodes=1m".

This patch restores the "remount" effect by calling reconfigure_single()

Fixes: 180ac53940cf ("devtmpfs: don't mix {ramfs,shmem}_fill_super() with mount_single()")
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/base/devtmpfs.c
fs/super.c
include/linux/fs_context.h