diff options
author | Kent Overstreet <koverstreet@google.com> | 2013-03-23 19:11:31 -0400 |
---|---|---|
committer | Kent Overstreet <koverstreet@google.com> | 2013-03-23 19:11:31 -0400 |
commit | cafe563591446cf80bfbc2fe3bc72a2e36cf1060 (patch) | |
tree | c8ae27b13dcdb0219634376ca5e667df32b1173a /kernel/fork.c | |
parent | ea6749c705d9e629ed03c7336cc929fc6014b834 (diff) |
bcache: A block layer cache
Does writethrough and writeback caching, handles unclean shutdown, and
has a bunch of other nifty features motivated by real world usage.
See the wiki at http://bcache.evilpiepirate.org for more.
Signed-off-by: Kent Overstreet <koverstreet@google.com>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 1766d324d5e3..7b54fb62332c 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1303,6 +1303,10 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1303 | p->memcg_batch.do_batch = 0; | 1303 | p->memcg_batch.do_batch = 0; |
1304 | p->memcg_batch.memcg = NULL; | 1304 | p->memcg_batch.memcg = NULL; |
1305 | #endif | 1305 | #endif |
1306 | #ifdef CONFIG_BCACHE | ||
1307 | p->sequential_io = 0; | ||
1308 | p->sequential_io_avg = 0; | ||
1309 | #endif | ||
1306 | 1310 | ||
1307 | /* Perform scheduler related setup. Assign this task to a CPU. */ | 1311 | /* Perform scheduler related setup. Assign this task to a CPU. */ |
1308 | sched_fork(p); | 1312 | sched_fork(p); |