Commit 3903f150 authored by Mike Marshall's avatar Mike Marshall

Orangefs: allow O_DIRECT in open

Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
parent d373a712
...@@ -124,19 +124,16 @@ static int orangefs_releasepage(struct page *page, gfp_t foo) ...@@ -124,19 +124,16 @@ static int orangefs_releasepage(struct page *page, gfp_t foo)
* will need to be able to use O_DIRECT on open in order to support * will need to be able to use O_DIRECT on open in order to support
* AIO. Modeled after NFS, they do this too. * AIO. Modeled after NFS, they do this too.
*/ */
/*
* static ssize_t orangefs_direct_IO(int rw, static ssize_t orangefs_direct_IO(struct kiocb *iocb,
* struct kiocb *iocb, struct iov_iter *iter)
* struct iov_iter *iter, {
* loff_t offset) gossip_debug(GOSSIP_INODE_DEBUG,
*{ "orangefs_direct_IO: %s\n",
* gossip_debug(GOSSIP_INODE_DEBUG, iocb->ki_filp->f_path.dentry->d_name.name);
* "orangefs_direct_IO: %s\n",
* iocb->ki_filp->f_path.dentry->d_name.name); return -EINVAL;
* }
* return -EINVAL;
*}
*/
struct backing_dev_info orangefs_backing_dev_info = { struct backing_dev_info orangefs_backing_dev_info = {
.name = "orangefs", .name = "orangefs",
...@@ -150,7 +147,7 @@ const struct address_space_operations orangefs_address_operations = { ...@@ -150,7 +147,7 @@ const struct address_space_operations orangefs_address_operations = {
.readpages = orangefs_readpages, .readpages = orangefs_readpages,
.invalidatepage = orangefs_invalidatepage, .invalidatepage = orangefs_invalidatepage,
.releasepage = orangefs_releasepage, .releasepage = orangefs_releasepage,
/* .direct_IO = orangefs_direct_IO */ .direct_IO = orangefs_direct_IO,
}; };
static int orangefs_setattr_size(struct inode *inode, struct iattr *iattr) static int orangefs_setattr_size(struct inode *inode, struct iattr *iattr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment