From: Bob Peterson Date: Tue, 15 May 2012 18:51:54 +0000 (-0400) Subject: GFS2: Fix quota adjustment return code X-Git-Tag: v3.5-rc1~168^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=500242ac6152b8f20903f043a86e6fdd51478845;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git GFS2: Fix quota adjustment return code This patch changes function gfs2_adjust_quota so that it properly returns a good (zero) return code on the normal path through the code. Without this, mounting GFS2 with -o quota=account periodically gave this error message: GFS2: fsid=cluster:fs: gfs2_quotad: sync error -5 Signed-off-by: Bob Peterson Signed-off-by: Steven Whitehouse --- diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 45d9171..b97178e 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -744,7 +744,7 @@ get_a_page: i_size_write(inode, size); inode->i_mtime = inode->i_atime = CURRENT_TIME; mark_inode_dirty(inode); - return err; + return 0; unlock_out: unlock_page(page);