quota: Move down dqptr_sem read after initializing default warn[] type at __dquot_all...
authorJeff Liu <jeff.liu@oracle.com>
Wed, 18 Jul 2012 04:12:41 +0000 (12:12 +0800)
committerJan Kara <jack@suse.cz>
Tue, 14 Aug 2012 22:22:57 +0000 (00:22 +0200)
commit6ea2eea1fa930b9308a06f77fce65c38931eeb13
tree39ee0487bdcbb9e1c1d9d6c250a4a3f1b36e80dd
parentdc141a402b9dc03a4188cd978a4cf149c397172c
quota: Move down dqptr_sem read after initializing default warn[] type at __dquot_alloc_space().

sb->s_dqopt->dqptr_sem is used to serialize ops using pointers from inode to
dquots.  But for __dquot_alloc_space(), it could be safely moved down after the
default warn[] array got initialized.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c