]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: renumber DCACHE_xyz flags, remove some stale ones
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 7 Aug 2011 05:41:50 +0000 (22:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 7 Aug 2011 05:52:40 +0000 (22:52 -0700)
commit20e31acfd8016dabbdc2fd3a3c886009ba85b3d2
treeb4bfc71ab9aaff0e8b65403c319dde519dd6f9ef
parent9d6b10e0e2500521e0f2ede7f2511286a3262363
vfs: renumber DCACHE_xyz flags, remove some stale ones

Gcc tends to generate better code with small integers, including the
DCACHE_xyz flag tests - so move the common ones to be first in the list.
Also just remove the unused DCACHE_INOTIFY_PARENT_WATCHED and
DCACHE_AUTOFS_PENDING values, their users no longer exists in the source
tree.

And add a "unlikely()" to the DCACHE_OP_COMPARE test, since we want the
common case to be a nice straight-line fall-through.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dcache.c
include/linux/dcache.h