summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-03-03 15:20:14 +0100
committerTobias Klauser <tklauser@distanz.ch>2014-03-03 15:20:14 +0100
commit3f41eca9328603313920db43c1a95f5660bb813b (patch)
treea93f8430109043effe82f40752b345ce5e594ee4
parentc70d06ddd5f3665e1572479fe7cf2c8933ab7787 (diff)
vimrc: Enable localvimrc
-rw-r--r--.vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 8264536..3402689 100644
--- a/.vimrc
+++ b/.vimrc
@@ -169,3 +169,9 @@ augroup c
autocmd BufNewFile *.h :0r! mkheader.py -s <afile>
augroup END
" }}}
+" {{{ localvimrc plugin
+" disable sandbox to allow autocmd
+let g:localvimrc_sandbox=0
+" don't ask before loading
+let g:localvimrc_ask=0
+" }}}
2@huawei.com Signed-off-by: Ingo Molnar <mingo@kernel.org> 2013-04-10sched/cpuacct: Remove redundant NULL checks in cpuacct_charge()Li Zefan1-1/+1 This is a micro optimization for the hot path. - We don't need to check if @ca is NULL in parent_ca(). - We don't need to check if @ca is NULL in the beginning of the for loop. Signed-off-by: Li Zefan <lizefan@huawei.com> Acked-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/515536A9.5000700@huawei.com Signed-off-by: Ingo Molnar <mingo@kernel.org> 2013-04-10sched/cpuacct: Add cpuacct_acount_field()Li Zefan1-0/+6 So we can remove open-coded cpuacct code in cputime.c. Signed-off-by: Li Zefan <lizefan@huawei.com> Acked-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/51553692.9060008@huawei.com Signed-off-by: Ingo Molnar <mingo@kernel.org> 2013-04-10sched/cpuacct: Add cpuacct_init()Li Zefan1-0/+5 So we don't open-coded initialization of cpuacct in core.c. Signed-off-by: Li Zefan <lizefan@huawei.com> Acked-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/51553687.1060906@huawei.com Signed-off-by: Ingo Molnar <mingo@kernel.org> 2013-04-10sched: Split cpuacct code out of sched.hLi Zefan1-0/+52 Add cpuacct.h and let sched.h include it. Signed-off-by: Li Zefan <lizefan@huawei.com> Acked-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/5155367B.2060506@huawei.com Signed-off-by: Ingo Molnar <mingo@kernel.org> ogheader'>2011-02-21ocfs2: Remove ENTRY from masklog.Tao Ma1-6/+6 ENTRY is used to record the entry of a function. But because it is added in so many functions, if we enable it, the system logs get filled up quickly and cause too much I/O. So actually no one can open it for a production system or even for a test. So for mlog_entry_void, we just remove it. for mlog_entry(...), we replace it with mlog(0,...), and they will be replace by trace event later. Signed-off-by: Tao Ma <boyu.mt@taobao.com> 2011-03-14exportfs: Return the minimum required handle sizeAneesh Kumar K.V1-2/+6 The exportfs encode handle function should return the minimum required handle size. This helps user to find out the handle size by passing 0 handle size in the first step and then redoing to the call again with the returned handle size value. Acked-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> 2011-01-12switch ocfs2, close racesAl Viro1-5/+1 Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> 2011-01-07fs: dcache reduce branches in lookup pathNick Piggin1-2/+2 Reduce some branches and memory accesses in dcache lookup by adding dentry flags to indicate common d_ops are set, rather than having to check them. This saves a pointer memory access (dentry->d_op) in common path lookup situations, and saves another pointer load and branch in cases where we have d_op but not the particular operation. Patched with: git grep -E '[.>]([[:space:]])*d_op([[:space:]])*=' | xargs sed -e 's/\([^\t ]*\)->d_op = \(.*\);/d_set_d_op(\1, \2);/' -e 's/\([^\t ]*\)\.d_op = \(.*\);/d_set_d_op(\&\1, \2);/' -i Signed-off-by: Nick Piggin <npiggin@kernel.dk>