diff options
| author | Alasdair G Kergon <agk@redhat.com> | 2007-10-19 17:38:55 -0400 |
|---|---|---|
| committer | Alasdair G Kergon <agk@redhat.com> | 2007-10-19 21:01:11 -0400 |
| commit | 051814c69fac92f1964739c0cf08b5e3b1156b04 (patch) | |
| tree | 5a279c06d13f5d953119d89bdcbd9b5f616c8a00 | |
| parent | bb56acf840600421e68f49bb037d1c659fcb37f8 (diff) | |
dm: bio_list macro renaming
Remove BIO_LIST and DEFINE_BIO_LIST macros that gain us nothing
since contents are initialised to NULL.
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
| -rw-r--r-- | drivers/md/dm-bio-list.h | 5 | ||||
| -rw-r--r-- | drivers/md/dm-delay.c | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/drivers/md/dm-bio-list.h b/drivers/md/dm-bio-list.h index 3f7b827649..d4509be0fe 100644 --- a/drivers/md/dm-bio-list.h +++ b/drivers/md/dm-bio-list.h | |||
| @@ -21,11 +21,6 @@ static inline int bio_list_empty(const struct bio_list *bl) | |||
| 21 | return bl->head == NULL; | 21 | return bl->head == NULL; |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | #define BIO_LIST_INIT { .head = NULL, .tail = NULL } | ||
| 25 | |||
| 26 | #define BIO_LIST(bl) \ | ||
| 27 | struct bio_list bl = BIO_LIST_INIT | ||
| 28 | |||
| 29 | static inline void bio_list_init(struct bio_list *bl) | 24 | static inline void bio_list_init(struct bio_list *bl) |
| 30 | { | 25 | { |
| 31 | bl->head = bl->tail = NULL; | 26 | bl->head = bl->tail = NULL; |
diff --git a/drivers/md/dm-delay.c b/drivers/md/dm-delay.c index 719f871bbd..bdd37f881c 100644 --- a/drivers/md/dm-delay.c +++ b/drivers/md/dm-delay.c | |||
| @@ -83,7 +83,7 @@ static struct bio *flush_delayed_bios(struct delay_c *dc, int flush_all) | |||
| 83 | struct dm_delay_info *delayed, *next; | 83 | struct dm_delay_info *delayed, *next; |
| 84 | unsigned long next_expires = 0; | 84 | unsigned long next_expires = 0; |
| 85 | int start_timer = 0; | 85 | int start_timer = 0; |
| 86 | BIO_LIST(flush_bios); | 86 | struct bio_list flush_bios = { }; |
| 87 | 87 | ||
| 88 | mutex_lock(&delayed_bios_lock); | 88 | mutex_lock(&delayed_bios_lock); |
| 89 | list_for_each_entry_safe(delayed, next, &dc->delayed_bios, list) { | 89 | list_for_each_entry_safe(delayed, next, &dc->delayed_bios, list) { |
