]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
md/raid5-cache: removes unnecessary write-through mode judgments
authorJackieLiu <liuyun01@kylinos.cn>
Tue, 13 Dec 2016 05:55:27 +0000 (13:55 +0800)
committerShaohua Li <shli@fb.com>
Thu, 5 Jan 2017 19:44:37 +0000 (11:44 -0800)
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>
drivers/md/raid5-cache.c

index d7bfb6fc8aef8808b143c024f823bab4e6bf640b..49aea423108484f63b5eb80ae00587aac15e0e0b 100644 (file)
@@ -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);