fd: inline pwd_get_smr
Tested by: pho
This commit is contained in:
parent
b4247e0cdf
commit
bb3a12f0e5
@ -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)
|
||||
{
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user