Skip to contentSkip to conversation

GFS2: Fix previous patch

Cluster-devel Steven Whitehouse 1 participant 1 message Jan 29, 2010 GFS2 file system

lore
Share & tools
lore
#0 lore raw

This fixes the rgrp patch,

Steve.

From ea0d7284f2f2bd56386e6c4810bf970e50472054 Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <[email protected]>
Date: Fri, 29 Jan 2010 15:20:34 +0000
Subject: [PATCH 1/3] GFS2: Fix previous patch

The do_div() call needs to remain.

---
 fs/gfs2/rgrp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
fs/gfs2/rgrp.c +1 -0
index 6702b82..46534a5 100644
@@ -591,6 +591,7 @@ static int gfs2_ri_update(struct gfs2_inode *ip)
 	u64 rgrp_count = ip->i_disksize;
 	int error;
 
+	do_div(rgrp_count, sizeof(struct gfs2_rindex));
 	clear_rgrpdi(sdp);
 
 	file_ra_state_init(&ra_state, inode->i_mapping);
Signature · 1 line
1.6.2.5