]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
erofs: clean up erofs_register_sysfs()
authorGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 28 Aug 2024 09:52:32 +0000 (17:52 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 9 Sep 2024 16:46:34 +0000 (00:46 +0800)
commit59aadaa7ebafbc57e642d772cfc02c2b907e5b89
tree4f3777617a4827380f7f8ac49fbb0ff32b70b912
parent9ed50b8231e37b1ae863f5dec8153b98d9f389b4
erofs: clean up erofs_register_sysfs()

After commit 684b290abc77 ("erofs: add support for
FS_IOC_GETFSSYSFSPATH"), `sb->s_sysfs_name` is now valid.

Just use it to get rid of duplicated logic.

Reviewed-by: Sandeep Dhavale <dhavale@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240828095232.571946-1-hsiangkao@linux.alibaba.com
fs/erofs/super.c
fs/erofs/sysfs.c