svn commit: r357908 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Fri Feb 14 11:22:13 UTC 2020
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);
More information about the svn-src-head
mailing list