View | Details | Raw Unified | Return to bug 205938 | Differences between
and this patch

Collapse All | Expand All

(-)sys/fs/ext2fs/ext2_bmap.c (-4 / +10 lines)
Lines 114-125 Link Here
114
	ep = path.ep_ext;
114
	ep = path.ep_ext;
115
	if (ep == NULL)
115
	if (ep == NULL)
116
		return (EIO);
116
		return (EIO);
117
	else {
118
		*bnp = fsbtodb(fs, lbn - ep->e_blk +
119
		    (ep->e_start_lo | (daddr_t)ep->e_start_hi << 32));
117
120
118
	*bnp = fsbtodb(fs, lbn - ep->e_blk +
121
		if (*bnp == 0)
119
	    (ep->e_start_lo | (daddr_t)ep->e_start_hi << 32));
122
			*bnp = -1;
123
	}
120
124
121
	if (*bnp == 0)
125
	if (path.ep_bp != NULL) {
122
		*bnp = -1;
126
		brelse(path.ep_bp);
127
		path.ep_bp = NULL;
128
	}
123
129
124
	return (0);
130
	return (0);
125
}
131
}

Return to bug 205938