vfs: move dentry name length comparison from dentry_cmp() into callers
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 May 2012 19:37:10 +0000 (12:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 May 2012 02:54:35 +0000 (19:54 -0700)
commitee983e89670704b2a05e897b161f2674a42d1508
tree51b96ffafd9e2496f8a7cf550245850d5a7a5929
parent94753db5ed9ad97582ef453127d9626a7a2be602
vfs: move dentry name length comparison from dentry_cmp() into callers

All callers do want to check the dentry length, but some of them can
check the length and the hash together, so doing it in dentry_cmp() can
be counter-productive.

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