diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-04-24 07:32:03 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-04-24 07:32:03 +0200 |
commit | b07ad9967f40b164af77205027352ba53729cf5a (patch) | |
tree | 33ce9c53602f1983cff5dd5f209bb668fb7ffca5 /kernel | |
parent | Merge branch 'tty-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gre... (diff) | |
download | linux-b07ad9967f40b164af77205027352ba53729cf5a.tar.xz linux-b07ad9967f40b164af77205027352ba53729cf5a.zip |
vfs: get rid of 'struct dcache_hash_bucket' abstraction
It's a useless abstraction for 'hlist_bl_head', and it doesn't actually
help anything - quite the reverse. All the users end up having to know
about the hlist_bl_head details anyway, using 'struct hlist_bl_node *'
etc. So it just makes the code look confusing.
And the cost of it is extra '&b->head' syntactic noise, but more
importantly it spuriously makes the hash table dentry list look
different from the per-superblock DCACHE_DISCONNECTED dentry list.
As a result, the code ended up using ad-hoc locking for one case and
special helper functions for what is really another totally identical
case in the very same function.
Make it all look and work the same.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions