reiserfs: Protect reiserfs_quota_on() with write lock
authorJan Kara <jack@suse.cz>
Tue, 13 Nov 2012 15:34:17 +0000 (16:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:34:56 +0000 (11:34 -0800)
commita7b8408f3c42adc601513bb7b8dae9ef05a1719e
treef78cdcd64d9e6d2e39b2da6d04da7ed09cebb657
parentdaa88cb107f76cf9b563a2c0c25bbf2f47c67abf
reiserfs: Protect reiserfs_quota_on() with write lock

commit b9e06ef2e8706fe669b51f4364e3aeed58639eb2 upstream.

In reiserfs_quota_on() we do quite some work - for example unpacking
tail of a quota file. Thus we have to hold write lock until a moment
we call back into the quota code.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/reiserfs/super.c