aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h24
1 files changed, 6 insertions, 18 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 8963d9149b5..0146e0fecf1 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -301,12 +301,6 @@ struct blk_queue_tag {
301#define BLK_SCSI_MAX_CMDS (256) 301#define BLK_SCSI_MAX_CMDS (256)
302#define BLK_SCSI_CMD_PER_LONG (BLK_SCSI_MAX_CMDS / (sizeof(long) * 8)) 302#define BLK_SCSI_CMD_PER_LONG (BLK_SCSI_MAX_CMDS / (sizeof(long) * 8))
303 303
304struct blk_cmd_filter {
305 unsigned long read_ok[BLK_SCSI_CMD_PER_LONG];
306 unsigned long write_ok[BLK_SCSI_CMD_PER_LONG];
307 struct kobject kobj;
308};
309
310struct queue_limits { 304struct queue_limits {
311 unsigned long bounce_pfn; 305 unsigned long bounce_pfn;
312 unsigned long seg_boundary_mask; 306 unsigned long seg_boundary_mask;
@@ -445,7 +439,6 @@ struct request_queue
445#if defined(CONFIG_BLK_DEV_BSG) 439#if defined(CONFIG_BLK_DEV_BSG)
446 struct bsg_class_device bsg_dev; 440 struct bsg_class_device bsg_dev;
447#endif 441#endif
448 struct blk_cmd_filter cmd_filter;
449}; 442};
450 443
451#define QUEUE_FLAG_CLUSTER 0 /* cluster several segments into 1 */ 444#define QUEUE_FLAG_CLUSTER 0 /* cluster several segments into 1 */
@@ -730,6 +723,7 @@ struct rq_map_data {
730 int nr_entries; 723 int nr_entries;
731 unsigned long offset; 724 unsigned long offset;
732 int null_mapped; 725 int null_mapped;
726 int from_user;
733}; 727};
734 728
735struct req_iterator { 729struct req_iterator {
@@ -786,18 +780,18 @@ extern int sg_scsi_ioctl(struct request_queue *, struct gendisk *, fmode_t,
786 * congested queues, and wake up anyone who was waiting for requests to be 780 * congested queues, and wake up anyone who was waiting for requests to be
787 * put back. 781 * put back.
788 */ 782 */
789static inline void blk_clear_queue_congested(struct request_queue *q, int rw) 783static inline void blk_clear_queue_congested(struct request_queue *q, int sync)
790{ 784{
791 clear_bdi_congested(&q->backing_dev_info, rw); 785 clear_bdi_congested(&q->backing_dev_info, sync);
792} 786}
793 787
794/* 788/*
795 * A queue has just entered congestion. Flag that in the queue's VM-visible 789 * A queue has just entered congestion. Flag that in the queue's VM-visible
796 * state flags and increment the global gounter of congested queues. 790 * state flags and increment the global gounter of congested queues.
797 */ 791 */
798static inline void blk_set_queue_congested(struct request_queue *q, int rw) 792static inline void blk_set_queue_congested(struct request_queue *q, int sync)
799{ 793{
800 set_bdi_congested(&q->backing_dev_info, rw); 794 set_bdi_congested(&q->backing_dev_info, sync);
801} 795}
802 796
803extern void blk_start_queue(struct request_queue *q); 797extern void blk_start_queue(struct request_queue *q);
@@ -998,13 +992,7 @@ static inline int sb_issue_discard(struct super_block *sb,
998 return blkdev_issue_discard(sb->s_bdev, block, nr_blocks, GFP_KERNEL); 992 return blkdev_issue_discard(sb->s_bdev, block, nr_blocks, GFP_KERNEL);
999} 993}
1000 994
1001/* 995extern int blk_verify_command(unsigned char *cmd, fmode_t has_write_perm);
1002* command filter functions
1003*/
1004extern int blk_verify_command(struct blk_cmd_filter *filter,
1005 unsigned char *cmd, fmode_t has_write_perm);
1006extern void blk_unregister_filter(struct gendisk *disk);
1007extern void blk_set_cmd_filter_defaults(struct blk_cmd_filter *filter);
1008 996
1009#define MAX_PHYS_SEGMENTS 128 997#define MAX_PHYS_SEGMENTS 128
1010#define MAX_HW_SEGMENTS 128 998#define MAX_HW_SEGMENTS 128