fd: prevent inlining of _fdrop thorough kern_descrip.c

fdrop is used in several places in the file and almost never has to call
_fdrop. Thus inlining it is a pure waste of space.

Approved by:	re (kib)
This commit is contained in:
Mateusz Guzik 2018-09-20 13:32:40 +00:00
parent a286a3099c
commit 51e13c93b6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338829

View File

@ -2936,8 +2936,11 @@ fgetvp_write(struct thread *td, int fd, cap_rights_t *rightsp,
/*
* Handle the last reference to a file being closed.
*
* Without the noinline attribute clang keeps inlining the func thorough this
* file when fdrop is used.
*/
int
int __noinline
_fdrop(struct file *fp, struct thread *td)
{
int error;