Linux RAID subsystem development
 help / color / mirror / Atom feed
* [PATCH] md/raid5-cache: remove the unnecessary next_cp_seq field from the r5l_log
@ 2016-11-29  3:13 JackieLiu
  2016-11-29 22:37 ` Shaohua Li
  0 siblings, 1 reply; 2+ messages in thread
From: JackieLiu @ 2016-11-29  3:13 UTC (permalink / raw)
  To: shli; +Cc: songliubraving, liuzhengyuan, linux-raid, JackieLiu

The next_cp_seq field is useless, remove it.

Signed-off-by: JackieLiu <liuyun01@kylinos.cn>
---
 drivers/md/raid5-cache.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c
index 5f817bd..95bd51e 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);
-- 
2.10.2




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-29 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-29  3:13 [PATCH] md/raid5-cache: remove the unnecessary next_cp_seq field from the r5l_log JackieLiu
2016-11-29 22:37 ` Shaohua Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox