From: Christoph Hellwig Date: Mon, 5 Oct 2015 07:31:15 +0000 (+0200) Subject: raid5-cache: small log->seq cleanup X-Git-Tag: firefly_0821_release~176^2~806^2~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2b8ef16ec4c529c7df3bb4e4eba45ac645a97b00;p=firefly-linux-kernel-4.4.55.git raid5-cache: small log->seq cleanup Signed-off-by: Christoph Hellwig Reviewed-by: Shaohua Li Signed-off-by: NeilBrown --- diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c index ea20d740a67c..4e6046f1b0aa 100644 --- a/drivers/md/raid5-cache.c +++ b/drivers/md/raid5-cache.c @@ -310,12 +310,11 @@ static struct r5l_io_unit *r5l_new_meta(struct r5l_log *log) io->log_start = log->log_start; io->meta_offset = sizeof(struct r5l_meta_block); - io->seq = log->seq; + io->seq = log->seq++; io->current_bio = r5l_bio_alloc(log, io); bio_add_page(io->current_bio, io->meta_page, PAGE_SIZE, 0); - log->seq++; r5_reserve_log_entry(log, io); spin_lock_irq(&log->io_list_lock);