]> 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)
commitb40e73343c300a9df5cab172568d5bd9c7a98bc4
tree732959579f2439c5787c22250bfba5533a54232c
parent46e9e5cfc2faf5092a0d6a6e8631caa7353afc07
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