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
0452a4e5
Commit
0452a4e5
authored
Jun 01, 2007
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sendfile: kill generic_file_sendfile()
It's no longer used. Signed-off-by:
Jens Axboe
<
jens.axboe@oracle.com
>
parent
5ffc4ef4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
include/linux/fs.h
include/linux/fs.h
+0
-1
mm/filemap.c
mm/filemap.c
+0
-20
No files found.
include/linux/fs.h
View file @
0452a4e5
...
...
@@ -1762,7 +1762,6 @@ extern ssize_t generic_file_buffered_write(struct kiocb *, const struct iovec *,
unsigned
long
,
loff_t
,
loff_t
*
,
size_t
,
ssize_t
);
extern
ssize_t
do_sync_read
(
struct
file
*
filp
,
char
__user
*
buf
,
size_t
len
,
loff_t
*
ppos
);
extern
ssize_t
do_sync_write
(
struct
file
*
filp
,
const
char
__user
*
buf
,
size_t
len
,
loff_t
*
ppos
);
extern
ssize_t
generic_file_sendfile
(
struct
file
*
,
loff_t
*
,
size_t
,
read_actor_t
,
void
*
);
extern
void
do_generic_mapping_read
(
struct
address_space
*
mapping
,
struct
file_ra_state
*
,
struct
file
*
,
loff_t
*
,
read_descriptor_t
*
,
read_actor_t
);
...
...
mm/filemap.c
View file @
0452a4e5
...
...
@@ -1245,26 +1245,6 @@ int file_send_actor(read_descriptor_t * desc, struct page *page, unsigned long o
return
written
;
}
ssize_t
generic_file_sendfile
(
struct
file
*
in_file
,
loff_t
*
ppos
,
size_t
count
,
read_actor_t
actor
,
void
*
target
)
{
read_descriptor_t
desc
;
if
(
!
count
)
return
0
;
desc
.
written
=
0
;
desc
.
count
=
count
;
desc
.
arg
.
data
=
target
;
desc
.
error
=
0
;
do_generic_file_read
(
in_file
,
ppos
,
&
desc
,
actor
);
if
(
desc
.
written
)
return
desc
.
written
;
return
desc
.
error
;
}
EXPORT_SYMBOL
(
generic_file_sendfile
);
static
ssize_t
do_readahead
(
struct
address_space
*
mapping
,
struct
file
*
filp
,
unsigned
long
index
,
unsigned
long
nr
)
...
...
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