Re: [PATCH 24/45] block: remove i_bdev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/28/20 5:14 PM, Christoph Hellwig wrote:
Switch the block device lookup interfaces to directly work with a dev_t
so that struct block_device references are only acquired by the
blkdev_get variants (and the blk-cgroup special case).  This means that
we now don't need an extra reference in the inode and can generally
simplify handling of struct block_device to keep the lookups contained
in the core block layer code.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Reviewed-by: Jan Kara <jack@xxxxxxx>
Acked-by: Tejun Heo <tj@xxxxxxxxxx>
Acked-by: Coly Li <colyli@xxxxxxx>		[bcache]
---
  block/ioctl.c                                |   3 +-
  drivers/block/loop.c                         |   8 +-
  drivers/md/bcache/super.c                    |  20 +-
  drivers/md/dm-table.c                        |   9 +-
  drivers/mtd/mtdsuper.c                       |  17 +-
  drivers/target/target_core_file.c            |   6 +-
  drivers/usb/gadget/function/storage_common.c |   8 +-
  fs/block_dev.c                               | 196 +++++--------------
  fs/btrfs/volumes.c                           |  13 +-
  fs/inode.c                                   |   3 -
  fs/internal.h                                |   7 +-
  fs/io_uring.c                                |  10 +-
  fs/pipe.c                                    |   5 +-
  fs/quota/quota.c                             |  19 +-
  fs/statfs.c                                  |   2 +-
  fs/super.c                                   |  44 ++---
  include/linux/blkdev.h                       |   2 +-
  include/linux/fs.h                           |   1 -
  18 files changed, 121 insertions(+), 252 deletions(-)

Reviewed-by: Hannes Reinecke <hare@xxxxxxx>

Cheers,

Hannes
--
Dr. Hannes Reinecke                Kernel Storage Architect
hare@xxxxxxx                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux