]> git.ipfire.org Git - thirdparty/linux.git/commit
md: factor bitmap creation away from sysfs handling
authorYu Kuai <yukuai@fnnas.com>
Sat, 25 Apr 2026 02:46:13 +0000 (10:46 +0800)
committerYu Kuai <yukuai@fnnas.com>
Tue, 28 Apr 2026 12:44:37 +0000 (20:44 +0800)
commit8776d342cf8fa0b98ca5e6fb2d956966fb5ca364
tree9311d2e7699e2005107a0ad2cf058915f97bd093
parent4d8c53c130f17902a7e76326cf867721cf768590
md: factor bitmap creation away from sysfs handling

Factor bitmap creation and destruction into helpers that do not touch
bitmap sysfs registration.

This prepares the bitmap sysfs rework so callers such as the sysfs
bitmap location path can create or destroy a bitmap backend without
coupling that to sysfs group lifetime management.

Reviewed-by: Su Yue <glass.su@suse.com>
Link: https://lore.kernel.org/r/20260425024615.1696892-2-yukuai@fnnas.com
Signed-off-by: Yu Kuai <yukuai@fnnas.com>
drivers/md/md.c