Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3903f150
Commit
3903f150
authored
Jun 09, 2016
by
Mike Marshall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Orangefs: allow O_DIRECT in open
Signed-off-by:
Mike Marshall
<
hubcap@omnibond.com
>
parent
d373a712
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
fs/orangefs/inode.c
fs/orangefs/inode.c
+11
-14
No files found.
fs/orangefs/inode.c
View file @
3903f150
...
...
@@ -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
* AIO. Modeled after NFS, they do this too.
*/
/*
* static ssize_t orangefs_direct_IO(int rw,
* struct kiocb *iocb,
* struct iov_iter *iter,
* loff_t offset)
*{
* gossip_debug(GOSSIP_INODE_DEBUG,
* "orangefs_direct_IO: %s\n",
* iocb->ki_filp->f_path.dentry->d_name.name);
*
* return -EINVAL;
*}
*/
static
ssize_t
orangefs_direct_IO
(
struct
kiocb
*
iocb
,
struct
iov_iter
*
iter
)
{
gossip_debug
(
GOSSIP_INODE_DEBUG
,
"orangefs_direct_IO: %s
\n
"
,
iocb
->
ki_filp
->
f_path
.
dentry
->
d_name
.
name
);
return
-
EINVAL
;
}
struct
backing_dev_info
orangefs_backing_dev_info
=
{
.
name
=
"orangefs"
,
...
...
@@ -150,7 +147,7 @@ const struct address_space_operations orangefs_address_operations = {
.
readpages
=
orangefs_readpages
,
.
invalidatepage
=
orangefs_invalidatepage
,
.
releasepage
=
orangefs_releasepage
,
/* .direct_IO = orangefs_direct_IO */
.
direct_IO
=
orangefs_direct_IO
,
};
static
int
orangefs_setattr_size
(
struct
inode
*
inode
,
struct
iattr
*
iattr
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment