mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-04 07:01:52 +01:00
Revert "Fix unused variable warning in ffs_snapshot.c"
This reverts commit 6ef6d3424f
.
The ffs_snapshot.c code in stable/12 is pretty far behind, and merging
all the additional changesets needed is too much churn.
This commit is contained in:
parent
5bb62be305
commit
f946e1f195
@ -214,10 +214,7 @@ ffs_snapshot(mp, snapfile)
|
||||
uint64_t flag;
|
||||
struct timespec starttime = {0, 0}, endtime;
|
||||
char saved_nice = 0;
|
||||
#ifdef DIAGNOSTIC
|
||||
long redo = 0;
|
||||
#endif
|
||||
long snaplistsize = 0;
|
||||
long redo = 0, snaplistsize = 0;
|
||||
int32_t *lp;
|
||||
void *space;
|
||||
struct fs *copy_fs = NULL, *fs;
|
||||
@ -460,9 +457,7 @@ restart:
|
||||
for (cg = 0; cg < fs->fs_ncg; cg++) {
|
||||
if ((ACTIVECGNUM(fs, cg) & ACTIVECGOFF(cg)) != 0)
|
||||
continue;
|
||||
#ifdef DIAGNOSTIC
|
||||
redo++;
|
||||
#endif
|
||||
error = UFS_BALLOC(vp, lfragtosize(fs, cgtod(fs, cg)),
|
||||
fs->fs_bsize, KERNCRED, 0, &nbp);
|
||||
if (error)
|
||||
|
Loading…
Reference in New Issue
Block a user