]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: move dentry_cmp from <linux/dcache.h> to fs/dcache.c
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 4 Mar 2012 23:51:42 +0000 (15:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 4 Mar 2012 23:51:42 +0000 (15:51 -0800)
commit067059d5e4c45aad02066e759f16dffafed1eb26
tree732959579f2439c5787c22250bfba5533a54232c
parent5a0c144ceec08b972015ae634e374af46dea095d
vfs: move dentry_cmp from <linux/dcache.h> to fs/dcache.c

It's only used inside fs/dcache.c, and we're going to play games with it
for the word-at-a-time patches.  This time we really don't even want to
export it, because it really is an internal function to fs/dcache.c, and
has been since it was introduced.

Having it in that extremely hot header file (it's included in pretty
much everything, thanks to <linux/fs.h>) is a disaster for testing
different versions, and is utterly pointless.

We really should have some kind of header file diet thing, where we
figure out which parts of header files are really better off private and
only result in more expensive compiles.

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