summaryrefslogtreecommitdiff
path: root/fs/gfs2/quota.c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2012-05-15 22:51:54 +0400
committerSteven Whitehouse <swhiteho@redhat.com>2012-05-16 15:22:38 +0400
commit500242ac6152b8f20903f043a86e6fdd51478845 (patch)
tree5497aad0f4887aa67d3df2bf8057e5d0e51305c8 /fs/gfs2/quota.c
parent41db1ab9bed189cb904f7b0e145c3c6030c094c6 (diff)
downloadlinux-500242ac6152b8f20903f043a86e6fdd51478845.tar.xz
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 <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/quota.c')
-rw-r--r--fs/gfs2/quota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index 45d9171e078b..b97178e7d397 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);