* NOTE: this needs fixing to support snapshots. Later.
*/
for (ssnum = 0; ssnum < 1 ; ssnum++) {
- ssum = segsum_find(fs, ss->segment, ss->dev, ssnum);
- if (IS_ERR(ss))
+ struct segsum *ssum2;
+ ssum2 = segsum_find(fs, ss->segment, ss->dev, ssnum);
+ if (IS_ERR(ssum2))
/* ?? what do I need to release etc */
/* Maybe this cannot fail because we own references
* to the two blocks !! */
LAFS_BUG(1, NULL);
lafs_checkpoint_lock(fs);
- set_bit(B_PinPending, &ssum->ssblk->b.flags);
- (void)lafs_pin_dblock(ssum->ssblk, AccountSpace);
+ set_bit(B_PinPending, &ssum2->ssblk->b.flags);
+ (void)lafs_pin_dblock(ssum2->ssblk, AccountSpace);
lafs_checkpoint_unlock(fs);
}
if (ssum)