summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2013-03-24 00:11:31 +0100
committerKent Overstreet <koverstreet@google.com>2013-03-24 00:11:31 +0100
commitcafe563591446cf80bfbc2fe3bc72a2e36cf1060 (patch)
treec8ae27b13dcdb0219634376ca5e667df32b1173a /kernel
parentExport __lockdep_no_validate__ (diff)
downloadlinux-cafe563591446cf80bfbc2fe3bc72a2e36cf1060.tar.xz
linux-cafe563591446cf80bfbc2fe3bc72a2e36cf1060.zip
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')
-rw-r--r--kernel/fork.c4
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,
p->memcg_batch.do_batch = 0;
p->memcg_batch.memcg = NULL;
#endif
+#ifdef CONFIG_BCACHE
+ p->sequential_io = 0;
+ p->sequential_io_avg = 0;
+#endif
/* Perform scheduler related setup. Assign this task to a CPU. */
sched_fork(p);