vfs bdev pile 2
Al Viro
maintainerNext block device series - replacing ->bd_inode (me and Yu Kuai).
Two trivial conflicts (block/ioctl.c and fs/btrfs/disk-io.c); proposed resolution in #merge-candidate (or in linux-next, for that matter).
The following changes since commit d18a8679581e8d1166b68e211d16c5349ae8c38c:
make set_blocksize() fail unless block device is opened exclusive (2024-05-02 17:39:44 -0400)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git tags/pull-bd_inode-1
for you to fetch changes up to 203c1ce0bb063d1620698e39637b64f2d09c1368:
RIP ->bd_inode (2024-05-03 02:36:56 -0400)
----------------------------------------------------------------
bd_inode series
Replacement of bdev->bd_inode with sane(r) set of primitives.
----------------------------------------------------------------
Al Viro (16):
erofs: switch erofs_bread() to passing offset instead of block number
erofs_buf: store address_space instead of inode
blkdev_write_iter(): saner way to get inode and bdev
dm-vdo: use bdev_nr_bytes(bdev) instead of i_size_read(bdev->bd_inode)
missing helpers: bdev_unhash(), bdev_drop()
Merge branch 'misc.erofs' into work.bdev
block_device: add a pointer to struct address_space (page cache of bdev)
use ->bd_mapping instead of ->bd_inode->i_mapping
grow_dev_folio(): we only want ->bd_inode->i_mapping there
blk_ioctl_{discard,zeroout}(): we only want ->bd_inode->i_mapping here...
fs/buffer.c: massage the remaining users of ->bd_inode to ->bd_mapping
gfs2: more obvious initializations of mapping->host
block/bdev.c: use the knowledge of inode/bdev coallocation
nilfs_attach_log_writer(): use ->bd_mapping->host instead of ->bd_inode
dasd_format(): killing the last remaining user of ->bd_inode
RIP ->bd_inodeYu Kuai (4):
ext4: remove block_device_ejected()
bcachefs: remove dead function bdev_sectors()
block2mtd: prevent direct access of bd_inode
block: move two helpers into bdev.c
block/bdev.c | 66 ++++++++++++++++++++++++---------- block/blk-zoned.c | 4 +-- block/blk.h | 2 ++ block/fops.c | 4 +-- block/genhd.c | 8 ++--- block/ioctl.c | 14 ++++---- block/partitions/core.c | 8 ++--- drivers/md/bcache/super.c | 2 +- drivers/md/dm-vdo/dm-vdo-target.c | 4 +-- drivers/md/dm-vdo/indexer/io-factory.c | 2 +- drivers/mtd/devices/block2mtd.c | 6 ++-- drivers/s390/block/dasd_ioctl.c | 2 +- drivers/scsi/scsicam.c | 2 +- fs/bcachefs/util.h | 5 --- fs/btrfs/disk-io.c | 6 ++-- fs/btrfs/volumes.c | 2 +- fs/btrfs/zoned.c | 2 +- fs/buffer.c | 26 +++++++------- fs/cramfs/inode.c | 2 +- fs/erofs/data.c | 12 +++---- fs/erofs/dir.c | 4 +-- fs/erofs/internal.h | 4 +-- fs/erofs/namei.c | 6 ++-- fs/erofs/super.c | 8 ++--- fs/erofs/xattr.c | 37 ++++++++----------- fs/erofs/zdata.c | 6 ++-- fs/ext4/dir.c | 2 +- fs/ext4/ext4_jbd2.c | 2 +- fs/ext4/super.c | 24 ++----------- fs/gfs2/glock.c | 2 +- fs/gfs2/ops_fstype.c | 2 +- fs/jbd2/journal.c | 2 +- fs/nilfs2/segment.c | 2 +- include/linux/blk_types.h | 2 +- include/linux/blkdev.h | 12 ++----- include/linux/buffer_head.h | 4 +-- include/linux/jbd2.h | 4 +-- 37 files changed, 145 insertions(+), 157 deletions(-)
The pull request you sent on Tue, 21 May 2024 17:38:52 +0100:
The pull request you sent on Tue, 21 May 2024 17:38:52 +0100:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.gittags/pull-bd_inode-1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/38da32ee70b876f5b8bea7c4135eff46339c18f2
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html