aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2010-02-26 00:20:37 -0500
committerJens Axboe <jens.axboe@oracle.com>2010-02-26 07:58:08 -0500
commiteb28d31bc97e6374d81f404da309401ffaed467b (patch)
tree580d750832dd1da39a5c93b91b8e069db3395b1c /include/linux/blkdev.h
parente751e76a5f7adeee7438e68b0965559ad2864d0d (diff)
block: Add BLK_ prefix to definitions
Add a BLK_ prefix to block layer constants. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index c051cea2df07..5d378627f446 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1016,11 +1016,15 @@ extern int blk_verify_command(unsigned char *cmd, fmode_t has_write_perm);
1016#define MAX_PHYS_SEGMENTS 128 1016#define MAX_PHYS_SEGMENTS 128
1017#define MAX_HW_SEGMENTS 128 1017#define MAX_HW_SEGMENTS 128
1018#define SAFE_MAX_SECTORS 255 1018#define SAFE_MAX_SECTORS 255
1019#define BLK_DEF_MAX_SECTORS 1024
1020
1021#define MAX_SEGMENT_SIZE 65536 1019#define MAX_SEGMENT_SIZE 65536
1022 1020
1023#define BLK_SEG_BOUNDARY_MASK 0xFFFFFFFFUL 1021enum blk_default_limits {
1022 BLK_MAX_SEGMENTS = 128,
1023 BLK_SAFE_MAX_SECTORS = 255,
1024 BLK_DEF_MAX_SECTORS = 1024,
1025 BLK_MAX_SEGMENT_SIZE = 65536,
1026 BLK_SEG_BOUNDARY_MASK = 0xFFFFFFFFUL,
1027};
1024 1028
1025#define blkdev_entry_to_request(entry) list_entry((entry), struct request, queuelist) 1029#define blkdev_entry_to_request(entry) list_entry((entry), struct request, queuelist)
1026 1030