summaryrefslogtreecommitdiff
path: root/packages/uw7/CVS/Repository
AgeCommit message (Expand)AuthorFilesLines
2006-11-13Initial import15.6-2Tobias Klauser1-0/+1
ef='/cgit.cgi/linux/net-next.git/patch/?id=3c66abbaaf69671dfd3eb9fa7740b5d7ec688231'>patch) tree63f3110203923120a46c9b052a97a16feaf22b39 parent28ca833ecf89c585a9543fb21aef6b2bdbbaa48a (diff)
md/r5cache: simplify handling of sh->log_start in recovery
We only need to update sh->log_start at the end of recovery, which is r5c_recovery_rewrite_data_only_stripes(), so it is not necessary to set it before that. In this patch, log_start is removed from r5c_recovery_alloc_stripe(). After updating all sh->log_start, rewrite_data_only_stripes() also updates log->next_checkpoints to the last sh->log_start. Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat
-rw-r--r--drivers/md/raid5-cache.c27
1 files changed, 12 insertions, 15 deletions
diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c