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
nexedi
linux
Commits
98e222d7
Commit
98e222d7
authored
Oct 16, 2002
by
Christoph Hellwig
Committed by
Stephen Lord
Oct 16, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XFS: add synch I/O entry points
Modid: 2.5.x-xfs:slinx:130135a
parent
2b203f6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
fs/xfs/linux/xfs_file.c
fs/xfs/linux/xfs_file.c
+28
-0
No files found.
fs/xfs/linux/xfs_file.c
View file @
98e222d7
...
@@ -113,6 +113,32 @@ linvfs_write(
...
@@ -113,6 +113,32 @@ linvfs_write(
}
}
STATIC
ssize_t
linvfs_aio_read
(
struct
kiocb
*
iocb
,
char
*
buf
,
size_t
count
,
loff_t
pos
)
{
struct
iovec
iov
=
{
buf
,
count
};
return
linvfs_readv
(
iocb
->
ki_filp
,
&
iov
,
1
,
&
iocb
->
ki_pos
);
}
STATIC
ssize_t
linvfs_aio_write
(
struct
kiocb
*
iocb
,
const
char
*
buf
,
size_t
count
,
loff_t
pos
)
{
struct
iovec
iov
=
{(
void
*
)
buf
,
count
};
return
linvfs_writev
(
iocb
->
ki_filp
,
&
iov
,
1
,
&
iocb
->
ki_pos
);
}
STATIC
int
STATIC
int
linvfs_open
(
linvfs_open
(
struct
inode
*
inode
,
struct
inode
*
inode
,
...
@@ -320,6 +346,8 @@ struct file_operations linvfs_file_operations = {
...
@@ -320,6 +346,8 @@ struct file_operations linvfs_file_operations = {
.
write
=
linvfs_write
,
.
write
=
linvfs_write
,
.
readv
=
linvfs_readv
,
.
readv
=
linvfs_readv
,
.
writev
=
linvfs_writev
,
.
writev
=
linvfs_writev
,
.
aio_read
=
linvfs_aio_read
,
.
aio_write
=
linvfs_aio_write
,
.
ioctl
=
linvfs_ioctl
,
.
ioctl
=
linvfs_ioctl
,
.
mmap
=
linvfs_file_mmap
,
.
mmap
=
linvfs_file_mmap
,
.
open
=
linvfs_open
,
.
open
=
linvfs_open
,
...
...
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