summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-10-05 09:31:15 +0200
committerNeilBrown <neilb@suse.com>2015-11-01 13:48:28 +1100
commit2b8ef16ec4c529c7df3bb4e4eba45ac645a97b00 (patch)
tree97ba2a43dd098eb43aef8c3d746760bb4e6c5938 /drivers/md
parentc1b9919849866b96dc435f025beaa307dc76ca27 (diff)
downloadop-kernel-dev-2b8ef16ec4c529c7df3bb4e4eba45ac645a97b00.zip
op-kernel-dev-2b8ef16ec4c529c7df3bb4e4eba45ac645a97b00.tar.gz
raid5-cache: small log->seq cleanup
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Shaohua Li <shli@fb.com> Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid5-cache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c
index ea20d74..4e6046f 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);
OpenPOWER on IntegriCloud