]> git.baikalelectronics.ru Git - kernel.git/commit
block: add a bdev_discard_granularity helper
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:56 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:59 +0000 (19:49 -0600)
commit1546427e30def8ed2ac1d893a75432071e1a633f
tree7df157ba434f0911852a57837610cc4f8e28b70f
parent5900b0014b161a0f8727c4015160339a7c10422d
block: add a bdev_discard_granularity helper

Abstract away implementation details from file systems by providing a
block_device based helper to retrieve the discard granularity.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com> [drbd]
Acked-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Acked-by: David Sterba <dsterba@suse.com> [btrfs]
Link: https://lore.kernel.org/r/20220415045258.199825-26-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
18 files changed:
block/blk-lib.c
drivers/block/drbd/drbd_nl.c
drivers/block/drbd/drbd_receiver.c
drivers/block/loop.c
drivers/target/target_core_device.c
fs/btrfs/ioctl.c
fs/exfat/file.c
fs/ext4/mballoc.c
fs/f2fs/file.c
fs/fat/file.c
fs/gfs2/rgrp.c
fs/jfs/ioctl.c
fs/nilfs2/ioctl.c
fs/ntfs3/file.c
fs/ntfs3/super.c
fs/ocfs2/ioctl.c
fs/xfs/xfs_discard.c
include/linux/blkdev.h