Skip to contentSkip to conversation

The case of the missing asterisk

Cluster-devel Steven Whitehouse 1 participant 1 message Feb 12, 2008 GFS2 file system

lore
Share & tools
lore
#0 lore raw

Hi,

During a recent patch, a dereference was forgotten, this adds it back correctly,

fs/gfs2/bmap.c +1 -1
index 1fda731..7f72564 100644
@@ -402,7 +402,7 @@ static int lookup_metapath(struct inode *inode, struct metapath *mp,
 
 	for (x = 0; x < end_of_metadata; x++) {
 		lookup_block(ip, x, mp, create, new, dblock);
-		if (!dblock)
+		if (!*dblock)
 			return 0;
 
 		ret = gfs2_meta_indirect_buffer(ip, x+1, *dblock, *new, &mp->mp_bh[x+1]);