Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58533
b: refs/heads/master
c: d054fe3
h: refs/heads/master
i:
  58531: e7259e2
v: v3
  • Loading branch information
Carsten Otte authored and Jens Axboe committed Jul 10, 2007
1 parent 075b3fb commit 5640d2e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 27 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 932cc6d4f7c35bbf70bce8cc865b6033ff49c9c0
refs/heads/master: d054fe3d10cc1f9aec01378c38caa32dffdd0090
1 change: 0 additions & 1 deletion trunk/fs/ext2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const struct file_operations ext2_xip_file_operations = {
.open = generic_file_open,
.release = ext2_release_file,
.fsync = ext2_sync_file,
.sendfile = xip_file_sendfile,
};
#endif

Expand Down
3 changes: 0 additions & 3 deletions trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1791,9 +1791,6 @@ extern int nonseekable_open(struct inode * inode, struct file * filp);
#ifdef CONFIG_FS_XIP
extern ssize_t xip_file_read(struct file *filp, char __user *buf, size_t len,
loff_t *ppos);
extern ssize_t xip_file_sendfile(struct file *in_file, loff_t *ppos,
size_t count, read_actor_t actor,
void *target);
extern int xip_file_mmap(struct file * file, struct vm_area_struct * vma);
extern ssize_t xip_file_write(struct file *filp, const char __user *buf,
size_t len, loff_t *ppos);
Expand Down
22 changes: 0 additions & 22 deletions trunk/mm/filemap_xip.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,28 +159,6 @@ xip_file_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos)
}
EXPORT_SYMBOL_GPL(xip_file_read);

ssize_t
xip_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_xip_mapping_read(in_file->f_mapping, &in_file->f_ra, in_file,
ppos, &desc, actor);
if (desc.written)
return desc.written;
return desc.error;
}
EXPORT_SYMBOL_GPL(xip_file_sendfile);

/*
* __xip_unmap is invoked from xip_unmap and
* xip_write
Expand Down

0 comments on commit 5640d2e

Please sign in to comment.