aboutsummaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
AgeCommit message (Expand)AuthorFilesLines
2021-09-07block: move fs/block_dev.c to block/bdev.cChristoph Hellwig1-1058/+0
2021-09-07block: split out operations on block special filesChristoph Hellwig1-637/+0
2021-08-30Merge tag 'io_uring-bio-cache.5-2021-08-30' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+4
2021-08-24block: mark blkdev_fsync staticChristoph Hellwig1-2/+2
2021-08-23block: use the percpu bio cache in __blkdev_direct_IOChristoph Hellwig1-2/+4
2021-08-16block: ensure the bdi is freed after inode_detach_wbChristoph Hellwig1-3/+4
2021-08-16block: free the extended dev_t minor laterChristoph Hellwig1-0/+5
2021-08-12block: remove GENHD_FL_UPChristoph Hellwig1-1/+1
2021-08-09block: remove the bd_bdi in struct block_deviceChristoph Hellwig1-12/+1
2021-08-09block: move the bdi from the request_queue to the gendiskChristoph Hellwig1-2/+2
2021-08-09block: look up holders by bdevChristoph Hellwig1-3/+0
2021-08-09block: make the block holder code optionalChristoph Hellwig1-143/+1
2021-08-02block: remove bdputChristoph Hellwig1-6/+0
2021-08-02block: remove bdgrabChristoph Hellwig1-15/+0
2021-08-02block: change the refcounting for partitionsChristoph Hellwig1-37/+23
2021-08-02block: unhash the whole device inode earlierChristoph Hellwig1-1/+1
2021-07-30Merge tag 'block-5.14-2021-07-30' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+2
2021-07-27block: delay freeing the gendiskChristoph Hellwig1-0/+2
2021-07-05Merge tag 'char-misc-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-4/+2
2021-06-30Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/t...Linus Torvalds1-15/+0
2021-06-30Merge tag 'for-5.14/block-2021-06-29' of git://git.kernel.dk/linux-blockLinus Torvalds1-152/+92
2021-06-29mm: require ->set_page_dirty to be explicitly wired upChristoph Hellwig1-0/+1
2021-06-24block: pass a gendisk to bdev_disk_changedChristoph Hellwig1-2/+2
2021-06-24block: move bdev_disk_changedChristoph Hellwig1-53/+0
2021-06-24fs: remove bdev_try_to_free_page callbackZhang Yi1-15/+0
2021-06-04remove the raw driverChristoph Hellwig1-4/+2
2021-06-01block: move bd_part_count to struct gendiskChristoph Hellwig1-3/+3
2021-06-01block: split __blkdev_putChristoph Hellwig1-26/+32
2021-06-01block: move adjusting bd_part_count out of __blkdev_getChristoph Hellwig1-9/+7
2021-06-01block: move bd_mutex to struct gendiskChristoph Hellwig1-22/+15
2021-06-01block: move sync_blockdev from __blkdev_put to blkdev_putChristoph Hellwig1-10/+10
2021-06-01block: split __blkdev_getChristoph Hellwig1-61/+57
2021-05-22Merge tag 'block-5.13-2021-05-22' of git://git.kernel.dk/linux-blockLinus Torvalds1-10/+8
2021-05-20block: fix a race between del_gendisk and BLKRRPARTGulam Mohamed1-0/+3
2021-05-20block: prevent block device lookups at the beginning of del_gendiskChristoph Hellwig1-10/+5
2021-05-07Merge tag 'block-5.13-2021-05-07' of git://git.kernel.dk/linux-blockLinus Torvalds1-3/+17
2021-05-06block: reexpand iov_iter after read/writeyangerkun1-3/+17
2021-05-05mm: introduce and use mapping_empty()Matthew Wilcox (Oracle)1-1/+1
2021-04-28Merge tag 'for-5.13/drivers-2021-04-27' of git://git.kernel.dk/linux-blockLinus Torvalds1-9/+0
2021-04-28Merge tag 'for-5.13/block-2021-04-27' of git://git.kernel.dk/linux-blockLinus Torvalds1-4/+6
2021-04-12block: remove the -ERESTARTSYS handling in blkdev_get_by_devChristoph Hellwig1-6/+0
2021-04-12block: initialize ret in bdev_disk_changedChristoph Hellwig1-1/+1
2021-04-08block: refactor blk_drop_partitionsChristoph Hellwig1-3/+5
2021-04-02block: don't ignore REQ_NOWAIT for direct IOPavel Begunkov1-0/+4
2021-03-29block: remove the revalidate_disk methodChristoph Hellwig1-3/+0
2021-03-23block: clear GD_NEED_PART_SCAN later in bdev_disk_changedChris Chiu1-2/+2
2021-03-11block: rename BIO_MAX_PAGES to BIO_MAX_VECSChristoph Hellwig1-3/+3
2021-03-05block: Try to handle busy underlying device on discardJan Kara1-1/+10
2021-02-28Merge tag 'block-5.12-2021-02-27' of git://git.kernel.dk/linux-blockLinus Torvalds1-5/+5
2021-02-26block: Add bio_max_segsMatthew Wilcox (Oracle)1-5/+5
2021-02-24fs: delete repeated words in commentsRandy Dunlap1-1/+1
2021-02-21Merge tag 'for-5.12/block-2021-02-17' of git://git.kernel.dk/linux-blockLinus Torvalds1-11/+9
2021-01-27block: use an on-stack bio in blkdev_issue_flushChristoph Hellwig1-1/+1
2021-01-27Revert "block: simplify set_init_blocksize" to regain lost performanceMaxim Mikityanskiy1-1/+9
2021-01-26block: unexport truncate_bdev_rangeChristoph Hellwig1-1/+0
2021-01-26bdev: Do not return EBUSY if bdev discard races with writeJan Kara1-6/+4
2021-01-25bio: add a helper calculating nr segments to allocPavel Begunkov1-3/+4
2021-01-07block: pre-initialize struct block_device in bdev_alloc_inodeChristoph Hellwig1-2/+3
2021-01-07fs: Fix freeze_bdev()/thaw_bdev() accounting of bd_fsfreeze_sbSatya Tangirala1-0/+2
2020-12-29fs: block_dev.c: fix kernel-doc warnings from struct block_device changesRandy Dunlap1-1/+1
2020-12-22block: update some copyrightsChristoph Hellwig1-0/+1
2020-12-22block: remove a pointless self-reference in block_dev.cChristoph Hellwig1-2/+0
2020-12-01block: stop using bdget_disk for partition 0Christoph Hellwig1-1/+1
2020-12-01block: merge struct block_device and struct hd_structChristoph Hellwig1-9/+0
2020-12-01block: allocate struct hd_struct as part of struct bdev_inodeChristoph Hellwig1-27/+12
2020-12-01block: move holder_dir to struct block_deviceChristoph Hellwig1-6/+5
2020-12-01block: move the partition_meta_info to struct block_deviceChristoph Hellwig1-0/+1
2020-12-01block: move disk stat accounting to struct block_deviceChristoph Hellwig1-0/+10
2020-12-01block: remove the nr_sects field in struct hd_structChristoph Hellwig1-71/+2
2020-12-01block: initialize struct block_device in bdev_allocChristoph Hellwig1-13/+9
2020-12-01block: simplify the block device claiming interfaceChristoph Hellwig1-33/+18
2020-12-01block: remove ->bd_containsChristoph Hellwig1-14/+8
2020-12-01block: simplify bdev/disk lookup in blkdev_getChristoph Hellwig1-76/+101
2020-12-01block: remove i_bdevChristoph Hellwig1-147/+49
2020-12-01block: opencode devcgroup_inode_permissionChristoph Hellwig1-6/+4
2020-12-01block: move bdput() to the callers of __blkdev_getChristoph Hellwig1-2/+5
2020-12-01block: refactor blkdev_getChristoph Hellwig1-99/+86
2020-12-01block: refactor __blkdev_putChristoph Hellwig1-7/+7
2020-12-01block: switch bdgrab to use igrabChristoph Hellwig1-1/+5
2020-12-01block: change the hash used for looking up block devicesChristoph Hellwig1-24/+2
2020-12-01block: add a bdev_kobj helperChristoph Hellwig1-3/+3
2020-12-01fs: simplify freeze_bdev/thaw_bdevChristoph Hellwig1-22/+15
2020-11-16block: unexport revalidate_disk_sizeChristoph Hellwig1-1/+0
2020-11-16block: remove the call to __invalidate_device in check_disk_size_changeChristoph Hellwig1-6/+0
2020-10-05block: add a bdget_part helperChristoph Hellwig1-3/+6
2020-09-23block: mark blkdev_get staticChristoph Hellwig1-2/+1
2020-09-23PM: rewrite is_hibernate_resume_dev to not require an inodeChristoph Hellwig1-1/+1
2020-09-23block: move the NEED_PART_SCAN flag to struct gendiskChristoph Hellwig1-4/+3
2020-09-10block: remove check_disk_changeChristoph Hellwig1-20/+0
2020-09-10block: add a bdev_check_media_change helperChristoph Hellwig1-14/+3
2020-09-07block: Do not discard buffers under a mounted filesystemJan Kara1-4/+33
2020-09-02block: remove revalidate_disk()Christoph Hellwig1-19/+0
2020-09-02block: add a new revalidate_disk_size helperChristoph Hellwig1-13/+29
2020-09-02block: rename bd_invalidatedChristoph Hellwig1-5/+5
2020-09-02block: don't clear bd_invalidated in check_disk_size_changeChristoph Hellwig1-1/+2
2020-09-01block: move the devcgroup_inode_permission call to blkdev_getChristoph Hellwig1-19/+17
2020-09-01block: fix locking for struct block_device size updatesChristoph Hellwig1-11/+14
2020-09-01block: replace bd_set_size with bd_set_nr_sectorsChristoph Hellwig1-5/+5
2020-08-03Merge tag 'for-5.9/io_uring-20200802' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2020-07-16block: integrate bd_start_claiming into __blkdev_getChristoph Hellwig1-122/+55
2020-07-16block: use bd_prepare_to_claim directly in the loop driverChristoph Hellwig1-4/+5
2020-07-16block: refactor bd_start_claimingChristoph Hellwig1-20/+13
2020-07-16block: simplify the restart case in __blkdev_getChristoph Hellwig1-15/+10
2020-07-08block: remove flush_diskChristoph Hellwig1-23/+7
2020-07-01block: remove the all_bdevs listChristoph Hellwig1-15/+7
2020-07-01block: remove the bd_queue field from struct block_deviceChristoph Hellwig1-7/+4
2020-07-01block: remove the bd_block_size field from struct block_deviceChristoph Hellwig1-7/+2
2020-07-01block: simplify set_init_blocksizeChristoph Hellwig1-6/+0
2020-06-24block: mark bd_finish_claiming staticChristoph Hellwig1-3/+2
2020-06-21block: flag block devices as supporting IOCB_WAITQJens Axboe1-1/+1
2020-06-18block: make function 'kill_bdev' staticZheng Bin1-3/+2
2020-06-16block: Fix use-after-free in blkdev_get()Jason Yan1-5/+7
2020-06-02Merge tag 'for-5.8/drivers-2020-06-01' of git://git.kernel.dk/linux-blockLinus Torvalds1-12/+0
2020-06-02Merge tag 'for-5.8/block-2020-06-01' of git://git.kernel.dk/linux-blockLinus Torvalds1-21/+4
2020-06-02Merge tag 'pm-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafae...Linus Torvalds1-2/+1
2020-06-02fs: convert mpage_readpages to mpage_readaheadMatthew Wilcox (Oracle)1-4/+3
2020-05-27PM: hibernate: Restrict writes to the resume deviceDomenico Andreoli1-2/+1
2020-05-22block: remove the error_sector argument to blkdev_issue_flushChristoph Hellwig1-1/+1
2020-05-21block: remove ioctl_by_bdevChristoph Hellwig1-12/+0
2020-05-12block: add blk_io_schedule() for avoiding task hung in sync dioMing Lei1-2/+2
2020-05-09Merge branch 'block-5.7' into for-5.8/blockJens Axboe1-1/+10
2020-04-24block: unexport bdev_read_page and bdev_write_pageChristoph Hellwig1-2/+0
2020-04-21block: remove unused headerMa, Jianpeng1-1/+0
2020-04-20block: fold bdev_unhash_inode into invalidate_partitionChristoph Hellwig1-15/+0
2020-04-20block: remove the disk argument from blk_drop_partitionsChristoph Hellwig1-1/+1
2020-04-20bdev: Reduce time holding bd_mutex in sync in blkdev_close()Douglas Anderson1-0/+10
2020-04-02Merge tag 'vfs-5.7-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linuxLinus Torvalds1-1/+3
2020-03-23hibernate: Allow uswsusp to write to swapDomenico Andreoli1-1/+3
2020-03-18block: fix a device invalidation regressionChristoph Hellwig1-4/+16
2019-12-02block: don't send uevent for empty disk when not invalidatingEric Biggers1-1/+1
2019-11-14block: move clearing bd_invalidated into check_disk_size_changeChristoph Hellwig1-2/+1
2019-11-14block: remove (__)blkdev_reread_part as an exported APIChristoph Hellwig1-0/+7
2019-11-14block: fix bdev_disk_changed for non-partitioned devicesChristoph Hellwig1-18/+7
2019-11-14block: move rescan_partitions to fs/block_dev.cChristoph Hellwig1-2/+36
2019-11-14block: merge invalidate_partitions into rescan_partitionsChristoph Hellwig1-4/+1
2019-11-03bdev: Refresh bdev size for disks without partitioningJan Kara1-9/+10
2019-11-03bdev: Factor out bdev revalidation into a common helperJan Kara1-12/+14
2019-09-18Merge tag 'vfs-5.4-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linuxLinus Torvalds1-0/+3
2019-08-20vfs: don't allow writes to swap filesDarrick J. Wong1-0/+3
2019-08-15block: remove REQ_NOWAIT_INLINEJens Axboe1-44/+5
2019-08-08bdev: Fixup error handling in blkdev_get()Jan Kara1-1/+4
2019-08-07block: fix O_DIRECT error handling for bio fragmentsJens Axboe1-16/+12
2019-08-01block: Fix __blkdev_direct_IO() for bio fragmentsDamien Le Moal1-1/+2
2019-07-30loop: Fix mount(2) failure due to race with LOOP_SET_FDJan Kara1-25/+58
2019-07-26Merge tag 'for-linus-20190726' of git://git.kernel.dk/linux-blockLinus Torvalds1-8/+50
2019-07-21block: properly handle IOCB_NOWAIT for async O_DIRECT IOJens Axboe1-8/+50
2019-07-19Merge branch 'work.mount0' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-8/+9
2019-06-29block_dev: use bio_release_pages in bio_unmap_userChristoph Hellwig1-9/+2
2019-06-29block_dev: use bio_release_pages in blkdev_bio_end_ioChristoph Hellwig1-7/+1
2019-05-27block: Don't revalidate bdev of hidden gendiskJan Kara1-9/+16
2019-05-25vfs: Convert bdev to use the new mount APIDavid Howells1-8/+9
2019-05-25mount_pseudo(): drop 'name' argument, switch to d_make_root()Al Viro1-1/+1
2019-05-21treewide: Add SPDX license identifier for missed filesThomas Gleixner1-0/+1
2019-05-14fs/block_dev.c: Remove duplicate headerSabyasachi Gupta1-1/+0
2019-05-07Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+0
2019-05-07Merge tag 'for-5.2/block-20190507' of git://git.kernel.dk/linux-blockLinus Torvalds1-4/+2
2019-05-07Merge branch 'work.icache' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-11/+3
2019-05-01bdev: switch to ->free_inode()Al Viro1-11/+3
2019-05-01block: fix handling for BIO_NO_PAGE_REFMing Lei1-1/+2
2019-04-30block: remove the i argument to bio_for_each_segment_allChristoph Hellwig1-4/+2
2019-04-11block: fix the return errno for direct IOJason Yan1-4/+4
2019-04-09fs/block_dev.c: remove unused includeChengguang Xu1-1/+0
2019-03-18block: add BIO_NO_PAGE_REF flagJens Axboe1-5/+7
2019-02-24block: add bio_set_polled() helperJens Axboe1-2/+2
2019-02-24block: wire up block device iopoll methodChristoph Hellwig1-1/+17
2019-02-15block: allow bio_for_each_segment_all() to iterate over multi-page bvecMing Lei1-2/+4
2019-01-15blockdev: Fix livelocks on loop deviceJan Kara1-10/+18
2019-01-02block: don't use un-ordered __set_current_state(TASK_UNINTERRUPTIBLE)Linus Torvalds1-5/+2
2018-12-28Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-0/+1
2018-12-28blkdev: avoid migration stalls for blkdev pagesJan Kara1-0/+1
2018-11-30block: avoid extra bio reference for async O_DIRECTChristoph Hellwig1-4/+13
2018-11-26block: make blk_poll() take a parameter on whether to spin or notJens Axboe1-2/+2
2018-11-19block: avoid ordered task state change for polled IOJens Axboe1-2/+5
2018-11-16block: don't plug for aio/O_DIRECT HIPRI IOJens Axboe1-2/+11
2018-11-16block: for async O_DIRECT, mark us as polling if asked toJens Axboe1-0/+3
2018-11-16block: add polled wakeup task helperJens Axboe1-2/+2
2018-11-07block: add REQ_HIPRI and inherit it from IOCB_HIPRIJens Axboe1-0/+2
2018-10-24iov_iter: Use accessor functionDavid Howells1-1/+1
2018-08-14Merge tag 'for-4.19/block-20180812' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+4
2018-07-27Merge tag 'for-linus-20180727' of git://git.kernel.dk/linux-blockLinus Torvalds1-4/+5
2018-07-26blkdev: __blkdev_direct_IO_simple: fix leak in error caseMartin Wilck1-4/+5
2018-07-18block: make bdev_ops->rw_page() take a REQ_OP instead of boolTejun Heo1-2/+4
2018-06-12treewide: kmalloc() -> kmalloc_array()Kees Cook1-1/+2
2018-06-08Merge branch 'work.aio' of git://git.kernel.org/pub/scm/linux/kernel/git/viro...Linus Torvalds1-0/+2
2018-05-31fs: blkdev set bio prio from kiocb prioAdam Manzanares1-0/+2
2018-05-30fs: convert block_dev.c to bioset_init()Kent Overstreet1-6/+3
2018-05-29block: don't print a message when the device went awayChristoph Hellwig1-5/+9
2018-05-29block: unexport check_disk_size_changeChristoph Hellwig1-1/+0
2018-04-10Merge tag 'libnvdimm-for-4.17' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-5/+0
2018-04-05fs: don't flush pagecache when expanding block deviceshunki-fujita1-2/+4
2018-03-30block, dax: remove dead code in blkdev_writepages()Dan Williams1-5/+0
2018-02-26blockdev: Avoid two active bdev inodes for one deviceJan Kara1-2/+23
2018-02-26genhd: Fix use after free in __blkdev_get()Jan Kara1-2/+5
2018-02-26genhd: Add helper put_disk_and_module()Jan Kara1-14/+5
2017-11-14Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-16/+4
2017-11-10block, scsi: Make SCSI quiesce and resume work reliablyBart Van Assche1-2/+2
2017-11-03block: add a poll_fn callback to struct request_queueChristoph Hellwig1-2/+2
2017-10-13fs/mpage.c: fix mpage_writepage() for pages with buffersMatthew Wilcox1-2/+4
2017-10-12fs/block_dev: remove vfs_msg() interfaceRakesh Pandit1-12/+0
2017-09-14Merge branch 'work.read_write' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-0/+5