Commit 59a67a69 authored by Xu Wei's avatar Xu Wei Committed by Yang Yingliang
Browse files

Move only dirty data when gc runnning, in order to reducing write amplification.

euleros inclusion
category: feature
bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=327


CVE: NA

Bcache will move all data, including clean and dirty data, in bucket when
gc running. This will cause big write amplification, which may reduce the
cache device's life. This patch provice a switch for gc to move only dirty
data, which can reduce write amplification.

Signed-off-by: default avatarqinghaixiang <xuweiqhx@163.com>
Signed-off-by: default avatarXu Wei <xuwei56@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Reviewed-by: default avatarLi Ruilin <liruilin4@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent cb004e12
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment