mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
fs: dcache per-bucket dcache hash locking
We can turn the dcache hash locking from a global dcache_hash_lock into per-bucket locking. Signed-off-by: Nick Piggin <[email protected]>
This commit is contained in:
parent
626d607435
commit
ceb5bdc2d2
4 changed files with 89 additions and 53 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include <linux/idr.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/backing-dev.h>
|
||||
#include <linux/rculist_bl.h>
|
||||
#include "internal.h"
|
||||
|
||||
|
||||
|
|
@ -71,7 +72,7 @@ static struct super_block *alloc_super(struct file_system_type *type)
|
|||
INIT_LIST_HEAD(&s->s_files);
|
||||
#endif
|
||||
INIT_LIST_HEAD(&s->s_instances);
|
||||
INIT_HLIST_HEAD(&s->s_anon);
|
||||
INIT_HLIST_BL_HEAD(&s->s_anon);
|
||||
INIT_LIST_HEAD(&s->s_inodes);
|
||||
INIT_LIST_HEAD(&s->s_dentry_lru);
|
||||
init_rwsem(&s->s_umount);
|
||||
|
|
|
|||
Loading…
Reference in a new issue