On Mon, Aug 28, 2017 at 09:07:27PM +0800, weiping zhang wrote: > Some filesystems not support O_DIRECT, when user open with O_DIRECT , > an errno -EINVAL return to userspace by open_check_o_direct, but the > file has been created, it's a strange thing. Add a checking for that > can avoid creating file if fs not support O_DIRECT. > Hi AI, would you please give some comments for this patch, --- v2 -> v3: introduce a new function for checking inode support direct io or not. v1 -> v2: a common way checking if fs support direct io, no matter what underlaying filesystem is. Thanks