Author: mjg Date: Fri Feb 14 11:22:12 2020 New Revision: 357908 URL: https://svnweb.freebsd.org/changeset/base/357908
Log: fd: annotate finstall with prediction branches Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c ============================================================================== --- head/sys/kern/kern_descrip.c Fri Feb 14 11:21:28 2020 (r357907) +++ head/sys/kern/kern_descrip.c Fri Feb 14 11:22:12 2020 (r357908) @@ -1978,7 +1978,8 @@ finstall(struct thread *td, struct file *fp, int *fd, if (!fhold(fp)) return (EBADF); FILEDESC_XLOCK(fdp); - if ((error = fdalloc(td, 0, fd))) { + error = fdalloc(td, 0, fd); + if (__predict_false(error != 0)) { FILEDESC_XUNLOCK(fdp); fdrop(fp, td); return (error); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"