]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
erofs: use more informative s_id for file-backed mounts
authorGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 30 Jun 2026 03:18:13 +0000 (11:18 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 30 Jun 2026 05:42:53 +0000 (13:42 +0800)
commit1006b2f57f77325bfbf5bd36685efe60334fa360
treea6813549cfcd693e232f17c435911ec2e18467bf
parentdc59e4fea9d83f03bad6bddf3fa2e52491777482
erofs: use more informative s_id for file-backed mounts

For file-backed mounts, set sb->s_id to the MAJOR:MINOR of sb->s_dev
(which fstat() will return) so that kernel messages and the sysfs
name are more informative rather than just "erofs: (device erofs): ...".

Reviewed-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/super.c