fusefs: fix the build without INVARIANTS after 00134a0789

MFC after:	2 weeks
MFC with:	00134a0789
Reported by:	se
This commit is contained in:
Alan Somers 2022-02-04 18:43:23 -07:00
parent 0c424c90ea
commit 18ed2ce77a

View file

@ -1868,9 +1868,8 @@ fuse_vnop_readdir(struct vop_readdir_args *ap)
tresid = uio->uio_resid;
err = fuse_filehandle_get_dir(vp, &fufh, cred, pid);
if (err == EBADF && mp->mnt_flag & MNT_EXPORTED) {
struct fuse_data *data = fuse_get_mpdata(mp);
KASSERT(data->dataflags & FSESS_NO_OPENDIR_SUPPORT,
KASSERT(fuse_get_mpdata(mp)->dataflags
& FSESS_NO_OPENDIR_SUPPORT,
("FUSE file systems that don't set "
"FUSE_NO_OPENDIR_SUPPORT should not be exported"));
/*