mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
inode: move to per-sb LRU locks
With the inode LRUs moving to per-sb structures, there is no longer a need for a global inode_lru_lock. The locking can be made more fine-grained by moving to a per-sb LRU lock, isolating the LRU operations of different filesytsems completely from each other. Signed-off-by: Dave Chinner <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
98b745c647
commit
09cc9fc7a7
3 changed files with 16 additions and 15 deletions
|
|
@ -78,6 +78,7 @@ static struct super_block *alloc_super(struct file_system_type *type)
|
|||
INIT_LIST_HEAD(&s->s_inodes);
|
||||
INIT_LIST_HEAD(&s->s_dentry_lru);
|
||||
INIT_LIST_HEAD(&s->s_inode_lru);
|
||||
spin_lock_init(&s->s_inode_lru_lock);
|
||||
init_rwsem(&s->s_umount);
|
||||
mutex_init(&s->s_lock);
|
||||
lockdep_set_class(&s->s_umount, &type->s_umount_key);
|
||||
|
|
|
|||
Loading…
Reference in a new issue