- rename some vars for clarity.  openflags is all the flags from
   open, where as rwflags is just the rw/wr info
 - back off sanity check a bit (too aggressive -- only consider
   rwflags instead of openflags)