summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorJackieLiu <liuyun01@kylinos.cn>2016-12-13 06:55:27 +0100
committerShaohua Li <shli@fb.com>2017-01-05 20:44:37 +0100
commit28ca833ecf89c585a9543fb21aef6b2bdbbaa48a (patch)
tree457f2758a225d6c5d4c8b5a2805761b03a170e47 /drivers/md
parentmd/raid10: Refactor raid10_make_request (diff)
downloadlinux-28ca833ecf89c585a9543fb21aef6b2bdbbaa48a.tar.xz
linux-28ca833ecf89c585a9543fb21aef6b2bdbbaa48a.zip
md/raid5-cache: removes unnecessary write-through mode judgments
The write-through mode has been returned in front of the function, do not need to do it again. Signed-off-by: JackieLiu <liuyun01@kylinos.cn> Reviewed-by: Song Liu <songliubraving@fb.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid5-cache.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c
index d7bfb6fc8aef..49aea4231084 100644
--- a/drivers/md/raid5-cache.c
+++ b/drivers/md/raid5-cache.c
@@ -2418,9 +2418,6 @@ void r5c_finish_stripe_write_out(struct r5conf *conf,
if (do_wakeup)
wake_up(&conf->wait_for_overlap);
- if (conf->log->r5c_journal_mode == R5C_JOURNAL_MODE_WRITE_THROUGH)
- return;
-
spin_lock_irq(&conf->log->stripe_in_journal_lock);
list_del_init(&sh->r5c);
spin_unlock_irq(&conf->log->stripe_in_journal_lock);