[PATCH openEuler-1.0-LTS v2 530/771] splice: move f_mode checks to do_{splice,tee}()