summaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-10-18 09:32:39 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-10-18 09:32:39 +0000
commit583b92e32859d04f45a81b1e47b9a3b86430d14b (patch)
tree9f39edf0ca06f624d6d63d567ac1d7ee24e08f87 /sys/fs
parent8f559ca08e7cd310388a710ab9f09c669e00ebab (diff)
Notes
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/nwfs/nwfs_vnops.c3
-rw-r--r--sys/fs/smbfs/smbfs_vnops.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/fs/nwfs/nwfs_vnops.c b/sys/fs/nwfs/nwfs_vnops.c
index 7dcc48aefab1..ab8a4f24fd11 100644
--- a/sys/fs/nwfs/nwfs_vnops.c
+++ b/sys/fs/nwfs/nwfs_vnops.c
@@ -799,8 +799,7 @@ static int nwfs_strategy (ap)
KASSERT(ap->a_vp == ap->a_bp->b_vp, ("%s(%p != %p)",
__func__, ap->a_vp, ap->a_bp->b_vp));
NCPVNDEBUG("\n");
- if (bp->b_flags & B_PHYS)
- panic("nwfs physio");
+ KASSERT(!(bp->b_flags & B_PHYS), ("nwfs physio"));
if (bp->b_flags & B_ASYNC)
td = (struct thread *)0;
else
diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c
index 1c9270a72021..383f565e2d2b 100644
--- a/sys/fs/smbfs/smbfs_vnops.c
+++ b/sys/fs/smbfs/smbfs_vnops.c
@@ -845,8 +845,7 @@ smbfs_strategy (ap)
KASSERT(ap->a_vp == ap->a_bp->b_vp, ("%s(%p != %p)",
__func__, ap->a_vp, ap->a_bp->b_vp));
SMBVDEBUG("\n");
- if (bp->b_flags & B_PHYS)
- panic("smbfs physio");
+ KASSERT(!(bp->b_flags & B_PHYS), ("smbfs physio"));
if (bp->b_flags & B_ASYNC)
td = (struct thread *)0;
else