diff options
author | Arjan van de Ven <arjan@infradead.org> | 2006-01-06 03:46:02 -0500 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2006-01-06 03:46:02 -0500 |
commit | 64100099ed22f71cce656c5c2caecf5c9cf255dc (patch) | |
tree | f6ebf7c94ee2eeb080d25880ffca839ec39ec47e /block/ll_rw_blk.c | |
parent | 80cfd548eed68cf90c5ae9cfcd6b02230cece756 (diff) |
[BLOCK] mark some block/ variables cons
the patch below marks various read-only variables in block/* as const,
so that gcc can optimize the use of them; eg gcc will replace the use by
the value directly now and will even remove the memory usage of these.
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'block/ll_rw_blk.c')
-rw-r--r-- | block/ll_rw_blk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index 97f4e7ecedfe..e02c88ca8fb5 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
@@ -1039,7 +1039,7 @@ void blk_queue_invalidate_tags(request_queue_t *q) | |||
1039 | 1039 | ||
1040 | EXPORT_SYMBOL(blk_queue_invalidate_tags); | 1040 | EXPORT_SYMBOL(blk_queue_invalidate_tags); |
1041 | 1041 | ||
1042 | static char *rq_flags[] = { | 1042 | static const char * const rq_flags[] = { |
1043 | "REQ_RW", | 1043 | "REQ_RW", |
1044 | "REQ_FAILFAST", | 1044 | "REQ_FAILFAST", |
1045 | "REQ_SORTED", | 1045 | "REQ_SORTED", |