Change #ifdef INVARIANTS panic into KASSERT, and print some useful
information to diagnose the issue, in handle_complete_freeblocks(). Reviewed by: jeff Tested by: pho
This commit is contained in:
parent
d23c72cdb5
commit
496fd81362
@ -6021,11 +6021,11 @@ handle_complete_freeblocks(freeblks)
|
|||||||
vput(vp);
|
vput(vp);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef INVARIANTS
|
KASSERT(freeblks->fb_chkcnt == 0 ||
|
||||||
if (freeblks->fb_chkcnt != 0 &&
|
((fs->fs_flags & FS_UNCLEAN) != 0 && (flags & LK_NOWAIT) == 0),
|
||||||
((fs->fs_flags & FS_UNCLEAN) == 0 || (flags & LK_NOWAIT) != 0))
|
("handle_workitem_freeblocks: inode %ju block count %jd\n",
|
||||||
printf("handle_workitem_freeblocks: block count\n");
|
(uintmax_t)freeblks->fb_previousinum,
|
||||||
#endif /* INVARIANTS */
|
(intmax_t)freeblks->fb_chkcnt));
|
||||||
|
|
||||||
ACQUIRE_LOCK(&lk);
|
ACQUIRE_LOCK(&lk);
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user