md/raid5-cache: remove the unnecessary next_cp_seq field from the r5l_log
The next_cp_seq field is useless, remove it. Signed-off-by: JackieLiu <liuyun01@kylinos.cn> Signed-off-by: Shaohua Li <shli@fb.com>
This commit is contained in:
parent
bc8f167f9c
commit
dbd22c8d7f
@ -113,7 +113,6 @@ struct r5l_log {
|
|||||||
u64 seq; /* log head sequence */
|
u64 seq; /* log head sequence */
|
||||||
|
|
||||||
sector_t next_checkpoint;
|
sector_t next_checkpoint;
|
||||||
u64 next_cp_seq;
|
|
||||||
|
|
||||||
struct mutex io_mutex;
|
struct mutex io_mutex;
|
||||||
struct r5l_io_unit *current_io; /* current io_unit accepting new data */
|
struct r5l_io_unit *current_io; /* current io_unit accepting new data */
|
||||||
@ -1075,7 +1074,6 @@ static bool r5l_complete_finished_ios(struct r5l_log *log)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
log->next_checkpoint = io->log_start;
|
log->next_checkpoint = io->log_start;
|
||||||
log->next_cp_seq = io->seq;
|
|
||||||
|
|
||||||
list_del(&io->log_sibling);
|
list_del(&io->log_sibling);
|
||||||
mempool_free(io, log->io_pool);
|
mempool_free(io, log->io_pool);
|
||||||
|
Loading…
Reference in New Issue
Block a user