summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2015-09-26 22:26:55 +0000
committermarkj <markj@FreeBSD.org>2015-09-26 22:26:55 +0000
commitbb2ac24a51cee9e3e4c5079b2573346889379d54 (patch)
treeb445af6ab56e381479513b8f03621fbd38c25841 /sys/kern
parent39db22aecf34f8edef7e6bd77a43b0d2d14860b1 (diff)
downloadFreeBSD-src-bb2ac24a51cee9e3e4c5079b2573346889379d54.zip
FreeBSD-src-bb2ac24a51cee9e3e4c5079b2573346889379d54.tar.gz
Remove a check for a condition that is always false by a preceding KASSERT
that was added in r144704.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_subr.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index a4c1279..6976c3b 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1429,11 +1429,6 @@ flushbuflist(struct bufv *bufv, int flags, struct bufobj *bo, int slpflag,
KASSERT(bp->b_bufobj == bo,
("bp %p wrong b_bufobj %p should be %p",
bp, bp->b_bufobj, bo));
- if (bp->b_bufobj != bo) { /* XXX: necessary ? */
- BUF_UNLOCK(bp);
- BO_LOCK(bo);
- return (EAGAIN);
- }
/*
* XXX Since there are no node locks for NFS, I
* believe there is a slight chance that a delayed
OpenPOWER on IntegriCloud