* [2.6 patch] remove mm/filemap.c:file_send_actor()
@ 2007-07-29 14:57 Adrian Bunk
2007-07-29 19:30 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2007-07-29 14:57 UTC (permalink / raw)
To: Jens Axboe; +Cc: linux-kernel
This patch removes the no longer used file_send_actor().
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
include/linux/fs.h | 1 -
mm/filemap.c | 20 --------------------
2 files changed, 21 deletions(-)
--- linux-2.6.23-rc1-mm1/include/linux/fs.h.old 2007-07-26 14:57:09.000000000 +0200
+++ linux-2.6.23-rc1-mm1/include/linux/fs.h 2007-07-26 14:57:15.000000000 +0200
@@ -1776,7 +1776,6 @@
extern int generic_file_mmap(struct file *, struct vm_area_struct *);
extern int generic_file_readonly_mmap(struct file *, struct vm_area_struct *);
extern int file_read_actor(read_descriptor_t * desc, struct page *page, unsigned long offset, unsigned long size);
-extern int file_send_actor(read_descriptor_t * desc, struct page *page, unsigned long offset, unsigned long size);
int generic_write_checks(struct file *file, loff_t *pos, size_t *count, int isblk);
extern ssize_t generic_file_aio_read(struct kiocb *, const struct iovec *, unsigned long, loff_t);
extern ssize_t generic_file_aio_write(struct kiocb *, const struct iovec *, unsigned long, loff_t);
--- linux-2.6.23-rc1-mm1/mm/filemap.c.old 2007-07-26 14:59:05.000000000 +0200
+++ linux-2.6.23-rc1-mm1/mm/filemap.c 2007-07-26 14:59:16.000000000 +0200
@@ -1205,26 +1205,6 @@
}
EXPORT_SYMBOL(generic_file_aio_read);
-int file_send_actor(read_descriptor_t * desc, struct page *page, unsigned long offset, unsigned long size)
-{
- ssize_t written;
- unsigned long count = desc->count;
- struct file *file = desc->arg.data;
-
- if (size > count)
- size = count;
-
- written = file->f_op->sendpage(file, page, offset,
- size, &file->f_pos, size<count);
- if (written < 0) {
- desc->error = written;
- written = 0;
- }
- desc->count = count - written;
- desc->written += written;
- return written;
-}
-
static ssize_t
do_readahead(struct address_space *mapping, struct file *filp,
pgoff_t index, unsigned long nr)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [2.6 patch] remove mm/filemap.c:file_send_actor()
2007-07-29 14:57 [2.6 patch] remove mm/filemap.c:file_send_actor() Adrian Bunk
@ 2007-07-29 19:30 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2007-07-29 19:30 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linux-kernel
On Sun, Jul 29 2007, Adrian Bunk wrote:
> This patch removes the no longer used file_send_actor().
Good catch, applied!
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-29 19:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-29 14:57 [2.6 patch] remove mm/filemap.c:file_send_actor() Adrian Bunk
2007-07-29 19:30 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox