]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
dm: bio_list macro renaming
authorAlasdair G Kergon <agk@redhat.com>
Fri, 19 Oct 2007 21:38:55 +0000 (22:38 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Sat, 20 Oct 2007 01:01:11 +0000 (02:01 +0100)
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>
drivers/md/dm-bio-list.h
drivers/md/dm-delay.c

index 3f7b827649e3d5ceeb93c1e4d51a5290b4dce933..d4509be0fe67f78ecb91c0a5981d28ab9edd31cc 100644 (file)
@@ -21,11 +21,6 @@ static inline int bio_list_empty(const struct bio_list *bl)
        return bl->head == NULL;
 }
 
-#define BIO_LIST_INIT { .head = NULL, .tail = NULL }
-
-#define BIO_LIST(bl) \
-       struct bio_list bl = BIO_LIST_INIT
-
 static inline void bio_list_init(struct bio_list *bl)
 {
        bl->head = bl->tail = NULL;
index 719f871bbd56ccbaead06a1059b7a21af10f3ada..bdd37f881c42ab757cb381514db10d4d232b854e 100644 (file)
@@ -83,7 +83,7 @@ static struct bio *flush_delayed_bios(struct delay_c *dc, int flush_all)
        struct dm_delay_info *delayed, *next;
        unsigned long next_expires = 0;
        int start_timer = 0;
-       BIO_LIST(flush_bios);
+       struct bio_list flush_bios = { };
 
        mutex_lock(&delayed_bios_lock);
        list_for_each_entry_safe(delayed, next, &dc->delayed_bios, list) {