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
6b6030a0
Commit
6b6030a0
authored
Aug 25, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Aug 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] annotation of xfs sendfile
->sendfile() takes kernel pointer, not userland one.
parent
15919cbb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
fs/xfs/linux-2.6/xfs_file.c
fs/xfs/linux-2.6/xfs_file.c
+1
-1
fs/xfs/linux-2.6/xfs_lrw.c
fs/xfs/linux-2.6/xfs_lrw.c
+1
-1
fs/xfs/linux-2.6/xfs_lrw.h
fs/xfs/linux-2.6/xfs_lrw.h
+1
-1
fs/xfs/linux-2.6/xfs_vnode.h
fs/xfs/linux-2.6/xfs_vnode.h
+1
-1
No files found.
fs/xfs/linux-2.6/xfs_file.c
View file @
6b6030a0
...
...
@@ -259,7 +259,7 @@ linvfs_sendfile(
loff_t
*
ppos
,
size_t
count
,
read_actor_t
actor
,
void
__user
*
target
)
void
*
target
)
{
vnode_t
*
vp
=
LINVFS_GET_VP
(
filp
->
f_dentry
->
d_inode
);
ssize_t
rval
;
...
...
fs/xfs/linux-2.6/xfs_lrw.c
View file @
6b6030a0
...
...
@@ -366,7 +366,7 @@ xfs_sendfile(
int
ioflags
,
size_t
count
,
read_actor_t
actor
,
void
__user
*
target
,
void
*
target
,
cred_t
*
credp
)
{
ssize_t
ret
;
...
...
fs/xfs/linux-2.6/xfs_lrw.h
View file @
6b6030a0
...
...
@@ -104,7 +104,7 @@ extern ssize_t xfs_write(struct bhv_desc *, struct kiocb *,
loff_t
*
,
int
,
struct
cred
*
);
extern
ssize_t
xfs_sendfile
(
struct
bhv_desc
*
,
struct
file
*
,
loff_t
*
,
int
,
size_t
,
read_actor_t
,
void
__user
*
,
struct
cred
*
);
void
*
,
struct
cred
*
);
extern
int
xfs_dev_is_read_only
(
struct
xfs_mount
*
,
char
*
);
...
...
fs/xfs/linux-2.6/xfs_vnode.h
View file @
6b6030a0
...
...
@@ -192,7 +192,7 @@ typedef ssize_t (*vop_write_t)(bhv_desc_t *, struct kiocb *,
loff_t
*
,
int
,
struct
cred
*
);
typedef
ssize_t
(
*
vop_sendfile_t
)(
bhv_desc_t
*
,
struct
file
*
,
loff_t
*
,
int
,
size_t
,
read_actor_t
,
void
__user
*
,
struct
cred
*
);
void
*
,
struct
cred
*
);
typedef
int
(
*
vop_ioctl_t
)(
bhv_desc_t
*
,
struct
inode
*
,
struct
file
*
,
int
,
unsigned
int
,
void
__user
*
);
typedef
int
(
*
vop_getattr_t
)(
bhv_desc_t
*
,
struct
vattr
*
,
int
,
...
...
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