diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2007-06-01 05:55:49 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-07-10 02:04:14 -0400 |
commit | 0452a4e5d021900b07ebdeecb9ed03b49f164f3f (patch) | |
tree | c03b50882723102bf51fade26f6a24d9dd0a182e /mm | |
parent | 5ffc4ef45b3b0a57872f631b4e4ceb8ace0d7496 (diff) |
sendfile: kill generic_file_sendfile()
It's no longer used.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/filemap.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index d1d9814f99d..c6ebd9f912a 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -1245,26 +1245,6 @@ int file_send_actor(read_descriptor_t * desc, struct page *page, unsigned long o | |||
1245 | return written; | 1245 | return written; |
1246 | } | 1246 | } |
1247 | 1247 | ||
1248 | ssize_t generic_file_sendfile(struct file *in_file, loff_t *ppos, | ||
1249 | size_t count, read_actor_t actor, void *target) | ||
1250 | { | ||
1251 | read_descriptor_t desc; | ||
1252 | |||
1253 | if (!count) | ||
1254 | return 0; | ||
1255 | |||
1256 | desc.written = 0; | ||
1257 | desc.count = count; | ||
1258 | desc.arg.data = target; | ||
1259 | desc.error = 0; | ||
1260 | |||
1261 | do_generic_file_read(in_file, ppos, &desc, actor); | ||
1262 | if (desc.written) | ||
1263 | return desc.written; | ||
1264 | return desc.error; | ||
1265 | } | ||
1266 | EXPORT_SYMBOL(generic_file_sendfile); | ||
1267 | |||
1268 | static ssize_t | 1248 | static ssize_t |
1269 | do_readahead(struct address_space *mapping, struct file *filp, | 1249 | do_readahead(struct address_space *mapping, struct file *filp, |
1270 | unsigned long index, unsigned long nr) | 1250 | unsigned long index, unsigned long nr) |