cache: just assign ni_resflags = NIRES_ABS

It is guaranteed to be 0 on entry.
This commit is contained in:
Mateusz Guzik 2021-01-08 13:00:41 +01:00
parent 77589de8aa
commit 8ddea0b127

View File

@ -5414,7 +5414,8 @@ cache_fplookup(struct nameidata *ndp, enum cache_fpl_status *status,
if (cnp->cn_pnbuf[0] == '/') {
dvp = cache_fpl_handle_root(&fpl);
ndp->ni_resflags |= NIRES_ABS;
MPASS(ndp->ni_resflags == 0);
ndp->ni_resflags = NIRES_ABS;
} else {
if (ndp->ni_dirfd == AT_FDCWD) {
dvp = pwd->pwd_cdir;