ocfs2/quota: Release lock for error in ocfs2_quota_write.
authorTao Ma <tao.ma@oracle.com>
Thu, 30 Jul 2009 08:07:10 +0000 (16:07 +0800)
committerJoel Becker <joel.becker@oracle.com>
Thu, 30 Jul 2009 18:06:06 +0000 (11:06 -0700)
commite9956fae7dbce6ac770e7a00436c496ddbbd3215
treee1b1cd0c59a598ec671e563a732f6935133a1520
parent0584974a77796581eb3a64b6c5005edac4a95128
ocfs2/quota: Release lock for error in ocfs2_quota_write.

ocfs2_quota_write needs to release the lock if it fails to
read quota block. So use "goto out" instead of "return err".

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/quota_global.c