fs: fold open_check_o_direct into do_dentry_open
authorChristoph Hellwig <hch@lst.de>
Tue, 20 Mar 2018 10:30:14 +0000 (11:30 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 28 Mar 2018 05:39:01 +0000 (01:39 -0400)
commitcab64df194667dc5d9d786f0a895f647f5501c0d
tree7b8466a6eb6ffdf48e91b5c6db85c939a50ac449
parent793057e1c7272a4531aafc130c4d658e4b57422c
fs: fold open_check_o_direct into do_dentry_open

do_dentry_open is where we do the actual open of the file, so this is
where we should do our O_DIRECT sanity check to cover all potential
callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/internal.h
fs/namei.c
fs/open.c