Skip to contentSkip to conversation

vfs.git set_blocksize() (bdev pile 1)

GIT PULL Merged Al Viro 2 participants 2 messages May 21, 2024 VFS

lore
Share & tools
lore

Al Viro

author maintainer
#0 lore raw

First bdev-related pile - set_blocksize() stuff

The following changes since commit 0bbac3facb5d6cc0171c45c9873a2dc96bea9680:

Linux 6.9-rc4 (2024-04-14 13:38:39 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git tags/pull-set_blocksize

for you to fetch changes up to d18a8679581e8d1166b68e211d16c5349ae8c38c:

make set_blocksize() fail unless block device is opened exclusive (2024-05-02 17:39:44 -0400)

----------------------------------------------------------------
getting rid of bogus set_blocksize() uses, switching it to struct file * and verifying that caller has device opened exclusively.

----------------------------------------------------------------
Al Viro (9):
bcache_register(): don't bother with set_blocksize()
pktcdvd: sort set_blocksize() calls out swapon(2)/swapoff(2): don't bother with block size swapon(2): open swap with O_EXCL
zram: don't bother with reopening - just use O_EXCL for open
swsusp: don't bother with setting block size btrfs_get_bdev_and_sb(): call set_blocksize() only for exclusive opens set_blocksize(): switch to passing struct file *
make set_blocksize() fail unless block device is opened exclusive

 Documentation/filesystems/porting.rst |  7 +++++++
 block/bdev.c                          | 14 ++++++++++----
 block/ioctl.c                         | 21 ++++++++++++---------
 drivers/block/pktcdvd.c               |  7 +------
 drivers/block/zram/zram_drv.c         | 29 +++++++----------------------
 drivers/block/zram/zram_drv.h         |  2 +-
 drivers/md/bcache/super.c             |  4 ----
 fs/btrfs/dev-replace.c                |  2 +-
 fs/btrfs/volumes.c                    | 13 ++++++++-----
 fs/ext4/super.c                       |  2 +-
 fs/reiserfs/journal.c                 |  5 ++---
 fs/xfs/xfs_buf.c                      |  2 +-
 include/linux/blkdev.h                |  2 +-
 include/linux/swap.h                  |  2 --
 kernel/power/swap.c                   |  7 +------
 mm/swapfile.c                         | 29 ++---------------------------
 16 files changed, 55 insertions(+), 93 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Tue, 21 May 2024 05:37:31 +0100:

The pull request you sent on Tue, 21 May 2024 05:37:31 +0100:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git tags/pull-set_blocksize

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/5ad8b6ad9a08abdbc8c57a51a5faaf2ef1afc547

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html