First step in fixing the handle_workitem_freeblocks panic.

In collaboration with:	 kib
This commit is contained in:
Peter Holm 2010-11-27 20:27:07 +00:00
parent 17ca6d98e1
commit bcc5c95b6b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215950

View File

@ -6024,11 +6024,12 @@ handle_complete_freeblocks(freeblks)
vput(vp);
}
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));
if (!(freeblks->fb_chkcnt == 0 ||
((fs->fs_flags & FS_UNCLEAN) != 0 && (flags & LK_NOWAIT) == 0)))
printf(
"handle_workitem_freeblocks: inode %ju block count %jd\n",
(uintmax_t)freeblks->fb_previousinum,
(intmax_t)freeblks->fb_chkcnt);
ACQUIRE_LOCK(&lk);
/*