aboutsummaryrefslogtreecommitdiffstats
path: root/block/ioctl.c
AgeCommit message (Expand)AuthorFilesLines
6 daysMerge tag 'for-6.10/block-20240511' of git://git.kernel.dk/linuxLinus Torvalds1-6/+36
12 daysblk-lib: check for kill signal in ioctl BLKDISCARDChristoph Hellwig1-3/+30
12 daysblock: move discard checks into the ioctl handlerChristoph Hellwig1-2/+5
12 daysblock/ioctl: prefer different overflow checkJustin Stitt1-1/+1
2024-04-18block: propagate partition scanning errors to the BLKRRPART ioctlChristoph Hellwig1-1/+2
2024-04-02block: fix overflow in blk_ioctl_discard()Li Nan1-2/+3
2024-03-11Merge tag 'for-6.9/block-20240310' of git://git.kernel.dk/linuxLinus Torvalds1-1/+8
2024-03-11Merge tag 'vfs-6.9.super' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-5/+4
2024-03-06block: move capacity validation to blkpg_do_ioctl()Li Lingfeng1-1/+8
2024-02-25block/ioctl: port blkdev_bszset() to fileChristian Brauner1-5/+4
2024-01-22block: Move checking GENHD_FL_NO_PART to bdev_add_partition()Li Lingfeng1-2/+0
2023-12-13block: add check that partition length needs to be aligned with block sizeMin Li1-4/+7
2023-10-28fs: Avoid grabbing sb->s_umount under bdev->bd_holder_lockJan Kara1-2/+3
2023-10-28block: Use bdev_open_by_dev() in disk_scan_partitions() and blkdev_bszset()Jan Kara1-2/+4
2023-08-31block: don't add or resize partition on the disk with GENHD_FL_NO_PARTLi Lingfeng1-0/+2
2023-08-21block: call into the file system for ioctl BLKFLSBUFChristoph Hellwig1-1/+8
2023-06-20block: fine-granular CAP_SYS_ADMIN for Persistent ReservationJingbo Xu1-19/+22
2023-06-20block: disallow Persistent Reservation on partitionsJingbo Xu1-5/+17
2023-06-12block: replace fmode_t with a block-specific type for block open flagsChristoph Hellwig1-30/+12
2023-06-12block: remove unused fmode_t arguments from ioctl handlersChristoph Hellwig1-7/+7
2023-06-12block: use the holder as indication for exclusive opensChristoph Hellwig1-3/+2
2023-06-05block: introduce holder opsChristoph Hellwig1-1/+2
2023-02-17block: fix scan partition for exclusively open device againYu Kuai1-1/+1
2023-02-17block: Revert "block: Do not reread partition table on exclusively open device"Yu Kuai1-7/+6
2022-12-01block: Do not reread partition table on exclusively open deviceJan Kara1-5/+7
2022-07-06block: replace blkdev_nr_zones with bdev_nr_zonesChristoph Hellwig1-1/+1
2022-04-17block: decouple REQ_OP_SECURE_ERASE from REQ_OP_DISCARDChristoph Hellwig1-8/+35
2022-04-17block: remove QUEUE_FLAG_DISCARDChristoph Hellwig1-2/+1
2022-04-17block: add a bdev_nonrot helperChristoph Hellwig1-1/+1
2022-04-15block/compat_ioctl: fix range check in BLKGETSIZEKhazhismel Kumykov1-1/+1
2021-11-29block: merge disk_scan_partitions and blkdev_reread_partChristoph Hellwig1-26/+5
2021-11-09block: Hold invalidate_lock in BLKZEROOUT ioctlShin'ichiro Kawasaki1-3/+9
2021-11-09block: Hold invalidate_lock in BLKDISCARD ioctlShin'ichiro Kawasaki1-3/+9
2021-10-19block/ioctl: use bdev_nr_sectors and bdev_nr_bytesChristoph Hellwig1-12/+8
2021-10-18block: merge block_ioctl into blkdev_ioctlChristoph Hellwig1-4/+14
2021-10-18block: unexport blkdev_ioctlChristoph Hellwig1-1/+0
2021-08-12block: pass a gendisk to bdev_resize_partitionChristoph Hellwig1-1/+1
2021-08-12block: pass a gendisk to bdev_del_partitionChristoph Hellwig1-1/+1
2021-08-12block: pass a gendisk to bdev_add_partitionChristoph Hellwig1-1/+2
2021-08-09block: remove the bd_bdi in struct block_deviceChristoph Hellwig1-3/+4
2021-08-02block: add ioctl to read the disk sequence numberMatteo Croce1-0/+2
2021-06-01block: move bd_part_count to struct gendiskChristoph Hellwig1-1/+1
2021-04-21block: return -EBUSY when there are open partitions in blkdev_reread_partChristoph Hellwig1-0/+2
2021-02-23block: reopen the device in blkdev_reread_partChristoph Hellwig1-7/+14
2020-12-01block: move the policy field to struct block_deviceChristoph Hellwig1-1/+1
2020-12-01block: remove i_bdevChristoph Hellwig1-2/+1
2020-12-01block: remove a superflous check in blkpg_do_ioctlChristoph Hellwig1-9/+0
2020-11-16block: remove __blkdev_driver_ioctlChristoph Hellwig1-20/+5
2020-11-16block: remove set_device_roChristoph Hellwig1-1/+1
2020-11-16block: don't call into the driver for BLKROSETChristoph Hellwig1-23/+0
2020-11-16block: add a new set_read_only methodChristoph Hellwig1-0/+5
2020-11-16block: don't call into the driver for BLKFLSBUFChristoph Hellwig1-7/+0
2020-09-25block: add a bdev_is_partition helperChristoph Hellwig1-2/+2
2020-09-23block: cleanup blkdev_bszsetChristoph Hellwig1-7/+6
2020-09-07block: Do not discard buffers under a mounted filesystemJan Kara1-6/+10
2020-05-19block: Fix type of first compat_put_{,u}long() argumentBart Van Assche1-2/+2
2020-04-20block: refactor blkpg_ioctlChristoph Hellwig1-124/+26
2020-03-25block: move block layer internals out of include/linux/genhd.hChristoph Hellwig1-0/+1
2020-01-03compat_ioctl: simplify up block/ioctl.cArnd Bergmann1-152/+117
2020-01-03compat_ioctl: block: simplify compat_blkpg_ioctl()Arnd Bergmann1-36/+38
2020-01-03compat_ioctl: block: move blkdev_compat_ioctl() into ioctl.cArnd Bergmann1-0/+219
2020-01-03compat_ioctl: block: add blkdev_compat_ptr_ioctlArnd Bergmann1-0/+21
2019-12-03block: simplify blkdev_nr_zonesChristoph Hellwig1-1/+1
2019-11-14block: remove (__)blkdev_reread_part as an exported APIChristoph Hellwig1-30/+5
2019-11-14block: fix bdev_disk_changed for non-partitioned devicesChristoph Hellwig1-4/+2
2019-11-14block: merge invalidate_partitions into rescan_partitionsChristoph Hellwig1-1/+1
2019-11-07block: add zone open, close and finish ioctl supportAjay Joshi1-1/+4
2019-04-30block: add SPDX tags to block layer files missing licensing informationChristoph Hellwig1-0/+1
2018-10-25block: Introduce BLKGETNRZONES ioctlDamien Le Moal1-0/+2
2018-10-25block: Introduce BLKGETZONESZ ioctlDamien Le Moal1-0/+2
2018-02-23block: pass inclusive 'lend' parameter to truncate_inode_pages_rangeMing Lei1-1/+1
2017-10-25block: move CAP_SYS_ADMIN check in blkdev_roset()Ilya Dryomov1-2/+3
2017-10-24block: Invalidate cache on discard v2Dmitry Monakhov1-4/+10
2017-04-08block: remove the discard_zeroes_data flagChristoph Hellwig1-1/+1
2017-04-08block: add a flags argument to (__)blkdev_issue_zerooutChristoph Hellwig1-1/+1
2017-02-02block: Get rid of blk_get_backing_dev_info()Jan Kara1-5/+2
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-12-19block: check partition alignmentStefan Haberland1-0/+3
2016-10-18blk-zoned: implement ioctlsShaun Tancheff1-0/+4
2016-10-11block: invalidate the page cache when issuing BLKZEROOUTDarrick J. Wong1-6/+12
2016-05-26Merge tag 'dax-misc-for-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+0
2016-05-20Revert "block: enable dax for raw block devices"Dan Williams1-32/+0
2016-05-17block: Update blkdev_dax_capable() for consistencyToshi Kani1-30/+0
2016-04-04mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macrosKirill A. Shutemov1-2/+2
2016-01-30block: revert runtime dax control of the raw block deviceDan Williams1-38/+0
2016-01-22wrappers for ->i_mutex accessAl Viro1-2/+2
2016-01-09pmem, dax: disable dax in the presence of bad blocksDan Williams1-0/+10
2016-01-09block: enable dax for raw block devicesDan Williams1-0/+61
2015-10-21block: add an API for Persistent ReservationsChristoph Hellwig1-0/+103
2015-10-21block: cleanup blkdev_ioctlChristoph Hellwig1-100/+127
2015-05-20block: replace trylock with mutex_lock in blkdev_reread_part()Ming Lei1-2/+7
2015-05-20block: export blkdev_reread_part() and __blkdev_reread_part()Jarod Wilson1-3/+25
2015-01-21block: Add discard flag to blkdev_issue_zeroout() functionMartin K. Petersen1-1/+1
2014-09-08block, bdi: an active gendisk always has a request_queue associated with itTejun Heo1-4/+0
2014-07-01block: fix BLKSECTGET ioctl when max_sectors is greater than USHRT_MAXAkinobu Mita1-1/+4
2013-11-08block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERODuan Jiong1-1/+1
2012-10-11Merge branch 'for-3.7/core' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+27
2012-09-20block: ioctl to zero block rangesMartin K. Petersen1-0/+27
2012-09-18blk: add an upper sanity check on partition addingAlan Cox1-1/+1
2012-08-01block: add partition resize function to blkpg ioctlVivek Goyal1-3/+56
2012-01-15Merge branch 'for-3.3/core' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+2
2012-01-11block: Add BLKROTATIONAL ioctlMartin K. Petersen1-0/+2
2012-01-08Merge branch 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-1/+1
2012-01-05vfs: fix up ENOIOCTLCMD error handlingLinus Torvalds1-4/+22
2012-01-03fs: move code out of buffer.cAl Viro1-1/+1
2011-11-06Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-0/+1
2011-10-31block: add export.h to files using EXPORT_SYMBOL/THIS_MODULE macrosPaul Gortmaker1-0/+1
2011-08-23block: add GENHD_FL_NO_PART_SCANTejun Heo1-1/+1
2011-02-24block: fix refcounting in BLKBSZSETMiklos Szeredi1-3/+5
2011-01-13Merge branch 'for-2.6.38/core' of git://git.kernel.dk/linux-2.6-blockLinus Torvalds1-2/+3
2010-11-27Merge branch 'cleanup-bd_claim' of git://git.kernel.org/pub/scm/linux/kernel/...Jens Axboe1-2/+3
2010-11-17BKL: remove extraneous #include <smp_lock.h>Arnd Bergmann1-1/+0
2010-11-13block: make blkdev_get/put() handle exclusive accessTejun Heo1-2/+3
2010-11-10block: ioctl: fix information leak to userlandVasiliy Kulikov1-0/+1
2010-11-10block: read i_size with i_size_read()Mike Snitzer1-3/+3
2010-10-22Merge branch 'for-2.6.37/barrier' of git://git.kernel.dk/linux-2.6-blockLinus Torvalds1-2/+2
2010-09-16block: remove BLKDEV_IFL_WAITChristoph Hellwig1-2/+2
2010-09-15block, partition: add partition_meta_info to hd_structWill Drewry1-1/+1
2010-08-12block: add secure discardAdrian Hunter1-5/+10
2010-08-07block: remove BKL from partition ioctlsArnd Bergmann1-4/+0
2010-08-07block: remove BKL from BLKROSET and BLKFLSBUFArnd Bergmann1-4/+0
2010-08-07block: push BKL into blktrace ioctlsArnd Bergmann1-2/+0
2010-08-07block: push down BKL into .locked_ioctlArnd Bergmann1-10/+1
2010-04-28blkdev: generalize flags for blkdev_issue_fn functionsDmitry Monakhov1-1/+1
2010-03-30include cleanup: Update gfp.h and slab.h includes to prepare for breaking imp...Tejun Heo1-0/+1
2009-12-03block: Allow devices to indicate whether discarded blocks are zeroedMartin K. Petersen1-0/+2
2009-10-03block: Topology ioctlsMartin K. Petersen1-2/+15
2009-09-14block: use blkdev_issue_discard in blk_ioctl_discardChristoph Hellwig1-47/+2
2009-05-22block: Use accessor functions for queue limitsMartin K. Petersen1-5/+5
2009-05-22block: Do away with the notion of hardsect_sizeMartin K. Petersen1-1/+1
2009-04-15block: Remove code handling bio_alloc failure with __GFP_WAITNikanth Karthikesan1-2/+0
2008-12-29block: don't take lock on changing ra_pagesWu Fengguang1-2/+0
2008-11-18block: make add_partition() return pointer to hd_structTejun Heo1-4/+3
2008-10-21[PATCH] kill the rest of struct file propagation in block ioctlsAl Viro1-8/+1
2008-10-21[PATCH] get rid of struct file use in blkdev_ioctl() BLKBSZSETAl Viro1-2/+3
2008-10-21[PATCH] get rid of blkdev_locked_ioctl()Al Viro1-72/+70
2008-10-21[PATCH] get rid of blkdev_driver_ioctl()Al Viro1-19/+10
2008-10-21[PATCH] end of methods switch: remove the old onesAl Viro1-26/+0
2008-10-21[PATCH] beginning of methods conversionAl Viro1-9/+26
2008-10-21[PATCH] introduce __blkdev_driver_ioctl()Al Viro1-0/+31
2008-10-09block: make partition array dynamicTejun Heo1-1/+1
2008-10-09block: introduce partition 0Tejun Heo1-2/+2
2008-10-09block: fix disk->part[] dereferencing raceTejun Heo1-10/+16
2008-10-09block: don't depend on consecutive minor spaceTejun Heo1-3/+3
2008-10-09block: make variable and argument names more consistentTejun Heo1-7/+8
2008-10-09block: update add_partition() error handlingTejun Heo1-5/+2
2008-10-09block: allow deleting zero length partitionTejun Heo1-2/+0
2008-10-09Allow elevators to sort/merge discard requestsDavid Woodhouse1-1/+1
2008-10-09Add BLKDISCARD ioctl to allow userspace to discard sectorsDavid Woodhouse1-0/+76
2008-07-25block/ioctl.c and fs/partition/check.c: check value returned by add_partition()Abdel Benamrouche1-2/+3
2007-10-10compat_ioctl: move common block ioctls to compat_blkdev_ioctlArnd Bergmann1-17/+4
2007-05-07mm: remove destroy_dirty_buffers from invalidate_bdev()Peter Zijlstra1-2/+2
2007-02-20[PATCH] lockdep: annotate BLKPG_DEL_PARTITIONPeter Zijlstra1-1/+1
2007-02-10[PARTITION]: Add whole_disk attribute.Fabio Massimo Di Nitto1-1/+1
2006-12-08[PATCH] struct path: convert blockJosef Sipek1-1/+1
2006-12-08[PATCH] remove the old bd_mutex lockdep annotationPeter Zijlstra1-2/+2
2006-10-03[PATCH] dm: export blkdev_driver_ioctlAlasdair G Kergon1-2/+3
2006-07-14[PATCH] lockdep: annotate the BLKPG_DEL_PARTITION ioctlArjan van de Ven1-2/+2
2006-03-23[PATCH] Block queue IO tracing support (blktrace) as of 2006-03-23Jens Axboe1-0/+6
2006-03-23[PATCH] sem2mutex: blockdev #2Arjan van de Ven1-11/+11
2006-01-11[PATCH] move capable() to capability.hRandy.Dunlap1-1/+1
2006-01-08[PATCH] Add block_device_operations.getgeo block device methodChristoph Hellwig1-0/+22
2005-11-04[BLOCK] Move all core block layer code to new block/ directoryJens Axboe1-0/+275