Files
erofs-linux/mm
Baokun Li 63ec0c26b6 tmpfs: preserve SB_I_VERSION on remount
Now tmpfs enables i_version by default and tmpfs does not modify it.  But
SB_I_VERSION can also be modified via sb_flags, and reconfigure_super()
always overwrites the existing flags with the latest ones.  This means
that if tmpfs is remounted without specifying iversion, the default
i_version will be unexpectedly disabled.

To ensure iversion remains enabled, SB_I_VERSION is now always set for
fc->sb_flags in shmem_init_fs_context(), instead of for sb->s_flags in
shmem_fill_super().

Link: https://lkml.kernel.org/r/[email protected]
Fixes: 36f05cab0a ("tmpfs: add support for an i_version counter")
Signed-off-by: Baokun Li <[email protected]>
Reviewed-by: Baolin Wang <[email protected]>
Tested-by: Baolin Wang <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Acked-by: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
2025-09-13 16:55:12 -07:00
..
2025-07-23 11:55:22 +02:00
2025-06-05 22:02:25 -07:00
2025-07-24 19:12:36 -07:00
…
2025-09-13 16:55:10 -07:00
…
…
…
2025-09-13 16:54:54 -07:00
2025-08-02 12:06:09 -07:00
2025-08-02 12:06:10 -07:00
2025-09-13 16:55:07 -07:00
…
2025-09-13 16:54:50 -07:00
…
2025-09-13 16:54:58 -07:00
2025-09-13 16:55:07 -07:00
2025-08-02 12:06:09 -07:00
…
2025-09-13 16:54:46 -07:00
2025-09-13 16:55:07 -07:00
2025-09-13 16:54:58 -07:00
…
…
2025-09-13 16:55:08 -07:00
2025-09-13 16:55:08 -07:00
2025-09-13 16:55:07 -07:00
2025-09-13 16:55:07 -07:00
2025-09-13 16:55:02 -07:00
2025-09-13 16:55:02 -07:00
2025-09-13 16:54:58 -07:00
2025-09-13 16:55:07 -07:00