Technically I think you need O_SYNC. O_DIRECT does pretty much the same but its intention is different.