cache: update an assert on CACHE_FPL_STATUS_ABORTED

Since symlink support it can get upgraded to CACHE_FPL_STATUS_DESTROYED.

Reported by:	bdrewery
This commit is contained in:
Mateusz Guzik 2021-04-06 22:31:48 +02:00
parent 11f47f17e1
commit 13b3862ee8

View File

@ -4660,7 +4660,8 @@ cache_fplookup_final_withparent(struct cache_fpl *fpl)
error = cache_fplookup_final_child(fpl, tvs);
if (__predict_false(error != 0)) {
MPASS(fpl->status == CACHE_FPL_STATUS_ABORTED);
MPASS(fpl->status == CACHE_FPL_STATUS_ABORTED ||
fpl->status == CACHE_FPL_STATUS_DESTROYED);
if ((cnp->cn_flags & LOCKPARENT) != 0)
vput(dvp);
else