I don't think you need to do this since this should happen automatically in the logfs layer.  When you save a matching objid+instid, old versions will automatically be invalidated for you.  Doing this here probably results in more linear searches in the logfs layer.