Skip to contentSkip to conversation

GFS2: Fix quota adjustment return code

PATCH New Bob Peterson 2 participants 2 messages May 15, 2012 – May 16, 2012 1 message not in the archive GFS2 file system

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 244fe9c3-81db-4202-a506-aa77c2e5225a@zmail12.collab.prod.int.phx2.redhat.com

#1 lore raw

PATCH 1/1 GFS2: Fix quota adjustment return code

Hi,

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

Regards,

Bob Peterson
Red Hat File Systems

---

fs/gfs2/quota.c +1 -1
index 02df0de..197cc2d 100644
@@ -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);
#2 lore raw

PATCH 1/1 GFS2: Fix quota adjustment return code

Hi,

Quoted 7 lines · Bob Peterson

Hi,

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

Now in the -nmw git tree. Thanks,

Steve.

Quoted 21 lines

Regards,

Bob Peterson
Red Hat File Systems

---

fs/gfs2/quota.c +1 -1
index 02df0de..197cc2d 100644
@@ -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);