Skip to contentSkip to conversation

remove mm/filemap.c:file_send_actor()

PATCH In review Adrian Bunk 2 participants 2 messages Jul 29, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove mm/filemap.c:file_send_actor()

This patch removes the no longer used file_send_actor().

---

 include/linux/fs.h |    1 -
 mm/filemap.c       |   20 --------------------
 2 files changed, 21 deletions(-)
include/linux/fs.h renamed from include/linux/fs.h.old +0 -1
@@ -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);
mm/filemap.c renamed from mm/filemap.c.old +0 -20
@@ -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)
#1 lore raw
Quoted 1 line · Adrian Bunk

This patch removes the no longer used file_send_actor().

Good catch, applied!

Signature · 1 line
Jens Axboe