zfs_remove: assert that delete_now case is never true on FreeBSD
That case is specific to Solaris VFS and it would violate pretty fundamental contracts of FreeBSD VFS. Discussed with: pjd MFC after: 12 days
This commit is contained in:
parent
7b069f7fee
commit
dbe922173c
@ -1908,6 +1908,9 @@ top:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (delete_now) {
|
if (delete_now) {
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
panic("zfs_remove: delete_now branch taken");
|
||||||
|
#endif
|
||||||
if (xattr_obj_unlinked) {
|
if (xattr_obj_unlinked) {
|
||||||
ASSERT3U(xzp->z_links, ==, 2);
|
ASSERT3U(xzp->z_links, ==, 2);
|
||||||
mutex_enter(&xzp->z_lock);
|
mutex_enter(&xzp->z_lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user