Replace an uninitialized variable with the correct element from the
superblock when doing recovery with journalled soft updates. Reported by: Chuck Silvers MFC after: 3 days Sponsored by: Netflix
This commit is contained in:
parent
5e4c0469f8
commit
600b3099b9
@ -1555,7 +1555,7 @@ ino_trunc(ino_t ino, off_t size)
|
|||||||
/* If we freed everything in this indirect free the indir. */
|
/* If we freed everything in this indirect free the indir. */
|
||||||
if (lastlbn > lbn)
|
if (lastlbn > lbn)
|
||||||
continue;
|
continue;
|
||||||
blk_free(DIP(ip, di_ib[i]), 0, frags);
|
blk_free(DIP(ip, di_ib[i]), 0, fs->fs_frag);
|
||||||
DIP_SET(ip, di_ib[i], 0);
|
DIP_SET(ip, di_ib[i], 0);
|
||||||
}
|
}
|
||||||
ino_dirty(ino);
|
ino_dirty(ino);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user