aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/request.c
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2013-06-05 09:21:07 -0400
committerKent Overstreet <koverstreet@google.com>2013-06-27 00:57:23 -0400
commit279afbad4e54acbd61bf88a54a73af3bbfdeb5dd (patch)
treeaefebaa3a7f54049904a275ca3035301603a9be1 /drivers/md/bcache/request.c
parent444fc0b6b167ed164e7436621a9d095e042644dd (diff)
bcache: Track dirty data by stripe
To make background writeback aware of raid5/6 stripes, we first need to track the amount of dirty data within each stripe - we do this by breaking up the existing sectors_dirty into per stripe atomic_ts Signed-off-by: Kent Overstreet <koverstreet@google.com>
Diffstat (limited to 'drivers/md/bcache/request.c')
-rw-r--r--drivers/md/bcache/request.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
index 695469958c1e..017c95fced8e 100644
--- a/drivers/md/bcache/request.c
+++ b/drivers/md/bcache/request.c
@@ -10,6 +10,7 @@
10#include "btree.h" 10#include "btree.h"
11#include "debug.h" 11#include "debug.h"
12#include "request.h" 12#include "request.h"
13#include "writeback.h"
13 14
14#include <linux/cgroup.h> 15#include <linux/cgroup.h>
15#include <linux/module.h> 16#include <linux/module.h>
@@ -1044,7 +1045,7 @@ static void request_write(struct cached_dev *dc, struct search *s)
1044 closure_bio_submit(bio, cl, s->d); 1045 closure_bio_submit(bio, cl, s->d);
1045 } else { 1046 } else {
1046 s->op.cache_bio = bio; 1047 s->op.cache_bio = bio;
1047 bch_writeback_add(dc, bio_sectors(bio)); 1048 bch_writeback_add(dc);
1048 } 1049 }
1049out: 1050out:
1050 closure_call(&s->op.cl, bch_insert_data, NULL, cl); 1051 closure_call(&s->op.cl, bch_insert_data, NULL, cl);