fd: inline pwd_get_smr

Tested by:	pho
This commit is contained in:
Mateusz Guzik 2020-12-28 09:29:57 +00:00
parent b4247e0cdf
commit bb3a12f0e5
2 changed files with 1 additions and 11 deletions

View File

@ -3672,16 +3672,6 @@ pwd_hold(struct thread *td)
return (pwd);
}
struct pwd *
pwd_get_smr(void)
{
struct pwd *pwd;
pwd = vfs_smr_entered_load(&curproc->p_pd->pd_pwd);
MPASS(pwd != NULL);
return (pwd);
}
static struct pwd *
pwd_alloc(void)
{

View File

@ -329,7 +329,7 @@ pwd_set(struct pwddesc *pdp, struct pwd *newpwd)
smr_serialized_store(&pdp->pd_pwd, newpwd,
(PWDDESC_ASSERT_XLOCKED(pdp), true));
}
struct pwd *pwd_get_smr(void);
#define pwd_get_smr() vfs_smr_entered_load(&curproc->p_pd->pd_pwd)
#endif /* _KERNEL */