summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJackieLiu <liuyun01@kylinos.cn>2016-11-29 11:13:20 +0800
committerShaohua Li <shli@fb.com>2016-11-29 14:46:22 -0800
commitdbd22c8d7fc6276a48627e57a5605cf9565de78a (patch)
tree46162539fabc3a28206f9637f6134a5579a75968
parentbc8f167f9c4656b7a972936237e9c38e6ab80c67 (diff)
downloadlinux-dbd22c8d7fc6276a48627e57a5605cf9565de78a.tar.bz2
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>
-rw-r--r--drivers/md/raid5-cache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c
index 7b9149ef685c..a46f547da261 100644
--- a/drivers/md/raid5-cache.c
+++ b/drivers/md/raid5-cache.c
@@ -113,7 +113,6 @@ struct r5l_log {
u64 seq; /* log head sequence */
sector_t next_checkpoint;
- u64 next_cp_seq;
struct mutex io_mutex;
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;
log->next_checkpoint = io->log_start;
- log->next_cp_seq = io->seq;
list_del(&io->log_sibling);
mempool_free(io, log->io_pool);