attrtest
if ((ip->attribute & ATTR_INV) || attrtest(ip, ATTR_INV)) {
if ((sc->attribute & ATTR_INV) || attrtest(sc, ATTR_INV)) {