summaryrefslogtreecommitdiffstats
path: root/sys/fs/smbfs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2008-12-16 21:13:11 +0000
committertrasz <trasz@FreeBSD.org>2008-12-16 21:13:11 +0000
commitb2515a861b17c67bef0ad8eb3e85cdaffe242388 (patch)
tree69e7de47346c349ddf6f303959a812bf891ea077 /sys/fs/smbfs
parent4039bb7c824968c46ec054cb3ea586cc81de6623 (diff)
downloadFreeBSD-src-b2515a861b17c67bef0ad8eb3e85cdaffe242388.zip
FreeBSD-src-b2515a861b17c67bef0ad8eb3e85cdaffe242388.tar.gz
According to phk@, VOP_STRATEGY should never, _ever_, return
anything other than 0. Make it so. This fixes "panic: VOP_STRATEGY failed bp=0xc320dd90 vp=0xc3b9f648", encountered when writing to an orphaned filesystem. Reason for the panic was the following assert: KASSERT(i == 0, ("VOP_STRATEGY failed bp=%p vp=%p", bp, bp->b_vp)); at vfs_bio:bufstrategy(). Reviewed by: scottl, phk Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation
Diffstat (limited to 'sys/fs/smbfs')
-rw-r--r--sys/fs/smbfs/smbfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c
index e34ebe2..9b1e76d 100644
--- a/sys/fs/smbfs/smbfs_vnops.c
+++ b/sys/fs/smbfs/smbfs_vnops.c
@@ -864,7 +864,7 @@ smbfs_strategy (ap)
if ((bp->b_flags & B_ASYNC) == 0 )
error = smbfs_doio(ap->a_vp, bp, cr, td);
- return error;
+ return (0);
}
int
OpenPOWER on IntegriCloud