| 1318 | } |
| 1319 | |
| 1320 | static int |
| 1321 | closefp(struct filedesc *fdp, int fd, struct file *fp, struct thread *td, |
| 1322 | bool holdleaders, bool audit) |
| 1323 | { |
| 1324 | |
| 1325 | FILEDESC_XLOCK_ASSERT(fdp); |
| 1326 | |
| 1327 | if (__predict_false(td->td_proc->p_fdtol != NULL)) { |
| 1328 | return (closefp_hl(fdp, fd, fp, td, holdleaders, audit)); |
| 1329 | } else { |
| 1330 | return (closefp_impl(fdp, fd, fp, td, audit)); |
| 1331 | } |
| 1332 | } |
| 1333 | |
| 1334 | /* |
| 1335 | * Close a file descriptor. |
no test coverage detected