mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215115
@ -6021,11 +6021,11 @@ handle_complete_freeblocks(freeblks)
|
||||
vput(vp);
|
||||
}
|
||||
|
||||
#ifdef INVARIANTS
|
||||
if (freeblks->fb_chkcnt != 0 &&
|
||||
((fs->fs_flags & FS_UNCLEAN) == 0 || (flags & LK_NOWAIT) != 0))
|
||||
printf("handle_workitem_freeblocks: block count\n");
|
||||
#endif /* INVARIANTS */
|
||||
KASSERT(freeblks->fb_chkcnt == 0 ||
|
||||
((fs->fs_flags & FS_UNCLEAN) != 0 && (flags & LK_NOWAIT) == 0),
|
||||
("handle_workitem_freeblocks: inode %ju block count %jd\n",
|
||||
(uintmax_t)freeblks->fb_previousinum,
|
||||
(intmax_t)freeblks->fb_chkcnt));
|
||||
|
||||
ACQUIRE_LOCK(&lk);
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user