[PATCH 12/44] block: add a bdev_kobj helper

David Sterba dsterba at suse.cz
Thu Nov 26 09:47:28 EST 2020


On Thu, Nov 26, 2020 at 02:03:50PM +0100, Christoph Hellwig wrote:
> Add a little helper to find the kobject for a struct block_device.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> Reviewed-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Reviewed-by: Jan Kara <jack at suse.cz>
> Reviewed-by: Johannes Thumshirn <johannes.thumshirn at wdc.com>
> Acked-by: Tejun Heo <tj at kernel.org>
> Acked-by: Coly Li <colyli at suse.de>		[bcache]
> ---
>  drivers/md/bcache/super.c |  7 ++-----
>  drivers/md/md.c           |  4 +---
>  fs/block_dev.c            |  6 +++---

For btrfs

>  fs/btrfs/sysfs.c          | 15 +++------------

Acked-by: David Sterba <dsterba at suse.com>



More information about the linux-mtd mailing list