mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
c1b9919849
commit
2b8ef16ec4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user