The first 3 patches of this series are simple code cleanups. The last patch changes the device naming scheme for devices created through configfs: the configfs device directory name is used as the disk name. This name is also checked against potentially exiting nullb devices created during modprobe when the nr_device module option is not 0. This series falls short of pre-populating configfs with directories corresponding to the devices created during modprobe as this is not easily feasible. However, the added device name check avoids mistakes by users about reusing configfs names already used by existing devices. Changes from v1: * Modified patch 3 to use the pr_fmt() macro instead of manually adding null_blk prefix to messages. * Fixed patch 4 commit message Damien Le Moal (4): block: null_blk: Fix code style issues block: null_blk: Cleanup device creation and deletion block: null_blk: Cleanup messages block: null_blk: Improve device creation with configfs drivers/block/null_blk/main.c | 91 +++++++++++++++++++++++++--------- drivers/block/null_blk/zoned.c | 7 ++- 2 files changed, 73 insertions(+), 25 deletions(-) -- 2.35.1