435: */
436: if (__predict_false(fd >= fdp->fd_nfiles)) {
437: return NULL;
441: KASSERT(fd >= NDFDFILE || ff == (fdfile_t *)fdp->fd_dfdfile[fd]);
442: if (__predict_false(ff == NULL)) {
443: return NULL;
507: }
508: if (__predict_false((v & FR_CLOSING) != 0)) {
509: break;
528: fp = fd_getfile(fd);
529: if (__predict_false(fp == NULL)) {
530: return EBADF;
531: }
532: if (__predict_false(fp->f_type != DTYPE_VNODE)) {
533: fd_putfile(fd);
536: vp = fp->f_data;
537: if (__predict_false(vp->v_type == VBAD)) {
538: /* XXX Is this case really necessary? */
556: fp = fd_getfile(fd);
557: if (__predict_false(fp == NULL)) {
558: return EBADF;
559: }
560: if (__predict_false(fp->f_type != DTYPE_SOCKET)) {
561: fd_putfile(fd);
678: #endif
679: if (__predict_false(atomic_dec_uint_nv(&ff->ff_refcnt) != 0)) {
680: /*
1169:
1170: if (__predict_false(atomic_inc_uint_nv(&nfiles) >= maxfiles)) {
1171: fd_abort(p, fp, *resultfd);
1759: /* Discard unused fdfile_t structures. */
1760: while (__predict_false(fflist != NULL)) {
1761: ff = fflist;