cache: remove a branch from mount point checking
Tested by: pho
This commit is contained in:
parent
0b5bd1afd8
commit
4651db56c7
@ -4569,8 +4569,7 @@ static bool
|
||||
cache_fplookup_mp_supported(struct mount *mp)
|
||||
{
|
||||
|
||||
if (mp == NULL)
|
||||
return (false);
|
||||
MPASS(mp != NULL);
|
||||
if ((mp->mnt_kern_flag & MNTK_FPLOOKUP) == 0)
|
||||
return (false);
|
||||
return (true);
|
||||
@ -4947,8 +4946,8 @@ cache_fplookup_impl(struct vnode *dvp, struct cache_fpl *fpl)
|
||||
cache_fpl_aborted(fpl);
|
||||
goto out;
|
||||
}
|
||||
mp = atomic_load_ptr(&fpl->dvp->v_mount);
|
||||
if (!cache_fplookup_mp_supported(mp)) {
|
||||
mp = atomic_load_ptr(&dvp->v_mount);
|
||||
if (__predict_false(mp == NULL || !cache_fplookup_mp_supported(mp))) {
|
||||
cache_fpl_aborted(fpl);
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user