do not rewrite attr every open.

dirty flag was not correctly cleared after set_attr in read_attrs.