reiserfs: Protect reiserfs_quota_on() with write lock
authorJan Kara <jack@suse.cz>
Tue, 13 Nov 2012 15:34:17 +0000 (16:34 +0100)
committerJan Kara <jack@suse.cz>
Mon, 19 Nov 2012 20:34:32 +0000 (21:34 +0100)
commitb9e06ef2e8706fe669b51f4364e3aeed58639eb2
treed415275434d661a1ba8152736f2788617b77d198
parent3bb3e1fc47aca554e7e2cc4deeddc24750987ac2
reiserfs: Protect reiserfs_quota_on() with write lock

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.

CC: stable@vger.kernel.org # >= 3.0
Signed-off-by: Jan Kara <jack@suse.cz>
fs/reiserfs/super.c