From ba62a2012ad2b5862cc8357939829e123b998688 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 26 Apr 2021 20:42:23 +0200 Subject: Enable cursorline, highlight search results --- .vimrc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.vimrc b/.vimrc index 1abacc2..d5db8ff 100644 --- a/.vimrc +++ b/.vimrc @@ -4,9 +4,8 @@ set noerrorbells " No annoying bells set vb t_vb= set hidden " allow buffer switching without saving -" Don't highlight search results -" set nohlsearch - +" Highlight search results +set hlsearch " Type-ahead find set incsearch @@ -37,7 +36,7 @@ set undolevels=50 set laststatus=2 " Always show the statusline set ruler " Display ruler with cursor positions -"set cursorline " Highlight the cursor line and column +set cursorline " Highlight the cursor line and column " Buffer, filename, line, total lines, column, ASCII value "set statusline=[%n]\ %f\ %m\ %l/%L,%c\ ASCII:\ %3b @@ -106,7 +105,6 @@ map! y Copyright (C) =strftime("%Y") =$GIT_AUTHOR_NAME << map c i=strftime("%F %R") Tobias Klauser * map! c =strftime("%F %R") Tobias Klauser * - map f ^iFrom: Tobias Klauser ^ map! f From: Tobias Klauser -- cgit v1.2.3-54-g00ecf form> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/ctree.h')
td class='right'>2016-12-12 16:43:52 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-12 18:55:08 -0800
commit14b468791fa955d442f962fdf5207dfd39a131c8 (patch)
treea1a5a3d445b7de16ae06184fa9c0804e3255d9d2 /lib
parent4d693d08607ab319095ec8942909df4b4aebdf66 (diff)
mm: workingset: move shadow entry tracking to radix tree exceptional tracking
Currently, we track the shadow entries in the page cache in the upper bits of the radix_tree_node->count, behind the back of the radix tree implementation. Because the radix tree code has no awareness of them, we rely on random subtleties throughout the implementation (such as the node->count != 1 check in the shrinking code, which is meant to exclude multi-entry nodes but also happens to skip nodes with only one shadow entry, as that's accounted in the upper bits). This is error prone and has, in fact, caused the bug fixed in d3798ae8c6f3 ("mm: filemap: don't plant shadow entries without radix tree node"). To remove these subtleties, this patch moves shadow entry tracking from the upper bits of node->count to the existing counter for exceptional entries. node->count goes back to being a simple counter of valid entries in the tree node and can be shrunk to a single byte. This vastly simplifies the page cache code. All accounting happens natively inside the radix tree implementation, and maintaining the LRU linkage of shadow nodes is consolidated into a single function in the workingset code that is called for leaf nodes affected by a change in the page cache tree. This also removes the last user of the __radix_delete_node() return value. Eliminate it. Link: http://lkml.kernel.org/r/20161117193211.GE23430@cmpxchg.org Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Reviewed-by: Jan Kara <jack@suse.cz> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Hugh Dickins <hughd@google.com> Cc: Matthew Wilcox <mawilcox@linuxonhyperv.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')