ocfs2: Fix NULL pointer deref when writing local dquot
authorJan Kara <jack@suse.cz>
Thu, 13 May 2010 16:05:15 +0000 (18:05 +0200)
committerJan Kara <jack@suse.cz>
Fri, 21 May 2010 17:30:48 +0000 (19:30 +0200)
commit741e128933448e589a85286e535078b24f4cf568
tree40a069e5c7484673529f0747a9995cc7d2a85f00
parent832d09cf1438bd172f69478bde74f20f05ec0115
ocfs2: Fix NULL pointer deref when writing local dquot

commit_dqblk() can write quota info to global file. That is actually a bad
thing to do because if we are just modifying local quota file, we are not
prepared (do not hold proper locks, do not have transaction credits) to do
a modification of the global quota file. So do not use commit_dqblk() and
instead call our writing function directly.

Acked-by: Joel Becker <Joel.Becker@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ocfs2/quota.h
fs/ocfs2/quota_global.c
fs/ocfs2/quota_local.c