summaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2013-03-23 16:11:31 -0700
committerKent Overstreet <koverstreet@google.com>2013-03-23 16:11:31 -0700
commitcafe563591446cf80bfbc2fe3bc72a2e36cf1060 (patch)
treec8ae27b13dcdb0219634376ca5e667df32b1173a /kernel/fork.c
parentea6749c705d9e629ed03c7336cc929fc6014b834 (diff)
downloadlinux-cafe563591446cf80bfbc2fe3bc72a2e36cf1060.tar.gz
linux-cafe563591446cf80bfbc2fe3bc72a2e36cf1060.tar.bz2
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/fork.c')
-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);