]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
raid5-cache: small log->seq cleanup
authorChristoph Hellwig <hch@lst.de>
Mon, 5 Oct 2015 07:31:15 +0000 (09:31 +0200)
committerNeilBrown <neilb@suse.com>
Sun, 1 Nov 2015 02:48:28 +0000 (13:48 +1100)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/raid5-cache.c

index ea20d740a67c1371171cdd73991d67aa1974c264..4e6046f1b0aa17e64e6cc0df37bb763559a5946e 100644 (file)
@@ -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);