aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/quota_global.c
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2009-07-30 04:07:10 -0400
committerJoel Becker <joel.becker@oracle.com>2009-07-30 14:06:06 -0400
commite9956fae7dbce6ac770e7a00436c496ddbbd3215 (patch)
treee1b1cd0c59a598ec671e563a732f6935133a1520 /fs/ocfs2/quota_global.c
parent0584974a77796581eb3a64b6c5005edac4a95128 (diff)
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>
Diffstat (limited to 'fs/ocfs2/quota_global.c')
-rw-r--r--fs/ocfs2/quota_global.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/quota_global.c b/fs/ocfs2/quota_global.c
index cc8785cf8f61..d604a6aa0a22 100644
--- a/fs/ocfs2/quota_global.c
+++ b/fs/ocfs2/quota_global.c
@@ -238,7 +238,7 @@ ssize_t ocfs2_quota_write(struct super_block *sb, int type,
238 } 238 }
239 if (err) { 239 if (err) {
240 mlog_errno(err); 240 mlog_errno(err);
241 return err; 241 goto out;
242 } 242 }
243 lock_buffer(bh); 243 lock_buffer(bh);
244 if (new) 244 if (new)