]> git.baikalelectronics.ru Git - kernel.git/commit
block: decouple REQ_OP_SECURE_ERASE from REQ_OP_DISCARD
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:57 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:59 +0000 (19:49 -0600)
commit428d7a36d2da570a30de3a3ec43e8e9ebeb25abe
tree9a1df22b92f1b310de70804605325b2367dfd52e
parent1546427e30def8ed2ac1d893a75432071e1a633f
block: decouple REQ_OP_SECURE_ERASE from REQ_OP_DISCARD

Secure erase is a very different operation from discard in that it is
a data integrity operation vs hint.  Fully split the limits and helper
infrastructure to make the separation more clear.

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> [nifs2]
Acked-by: Jaegeuk Kim <jaegeuk@kernel.org> [f2fs]
Acked-by: Coly Li <colyli@suse.de> [bcache]
Acked-by: David Sterba <dsterba@suse.com> [btrfs]
Acked-by: Chao Yu <chao@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220415045258.199825-27-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
33 files changed:
block/blk-core.c
block/blk-lib.c
block/blk-mq-debugfs.c
block/blk-settings.c
block/fops.c
block/ioctl.c
drivers/block/drbd/drbd_receiver.c
drivers/block/rnbd/rnbd-clt.c
drivers/block/rnbd/rnbd-srv-dev.h
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/xenbus.c
drivers/block/xen-blkfront.c
drivers/md/bcache/alloc.c
drivers/md/dm-table.c
drivers/md/dm-thin.c
drivers/md/md.c
drivers/md/raid5-cache.c
drivers/mmc/core/queue.c
drivers/nvme/target/io-cmd-bdev.c
drivers/target/target_core_file.c
drivers/target/target_core_iblock.c
fs/btrfs/extent-tree.c
fs/ext4/mballoc.c
fs/f2fs/file.c
fs/f2fs/segment.c
fs/jbd2/journal.c
fs/nilfs2/sufile.c
fs/nilfs2/the_nilfs.c
fs/ntfs3/super.c
fs/xfs/xfs_discard.c
fs/xfs/xfs_log_cil.c
include/linux/blkdev.h
mm/swapfile.c