mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
quota: remove dqptr_sem
Remove dqptr_sem to make quota code scalable: Remove the dqptr_sem, accessing inode->i_dquot now protected by dquot_srcu, and changing inode->i_dquot is now serialized by dq_data_lock. Signed-off-by: Lai Siyao <[email protected]> Signed-off-by: Niu Yawei <[email protected]> Signed-off-by: Jan Kara <[email protected]>
This commit is contained in:
parent
9eb6463f31
commit
b9ba6f94b2
3 changed files with 49 additions and 67 deletions
|
|
@ -218,7 +218,6 @@ static struct super_block *alloc_super(struct file_system_type *type, int flags)
|
|||
lockdep_set_class(&s->s_vfs_rename_mutex, &type->s_vfs_rename_key);
|
||||
mutex_init(&s->s_dquot.dqio_mutex);
|
||||
mutex_init(&s->s_dquot.dqonoff_mutex);
|
||||
init_rwsem(&s->s_dquot.dqptr_sem);
|
||||
s->s_maxbytes = MAX_NON_LFS;
|
||||
s->s_op = &default_op;
|
||||
s->s_time_gran = 1000000000;
|
||||
|
|
|
|||
Loading…
Reference in a new issue