sendfile: remove .sendfile from filesystems that use generic_file_sendfile()
They can use generic_file_splice_read() instead. Since sys_sendfile() now prefers that, there should be no change in behaviour. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
@ -123,30 +123,6 @@ xfs_file_aio_write_invis(
|
||||
return __xfs_file_write(iocb, iov, nr_segs, IO_ISAIO|IO_INVIS, pos);
|
||||
}
|
||||
|
||||
STATIC ssize_t
|
||||
xfs_file_sendfile(
|
||||
struct file *filp,
|
||||
loff_t *pos,
|
||||
size_t count,
|
||||
read_actor_t actor,
|
||||
void *target)
|
||||
{
|
||||
return bhv_vop_sendfile(vn_from_inode(filp->f_path.dentry->d_inode),
|
||||
filp, pos, 0, count, actor, target, NULL);
|
||||
}
|
||||
|
||||
STATIC ssize_t
|
||||
xfs_file_sendfile_invis(
|
||||
struct file *filp,
|
||||
loff_t *pos,
|
||||
size_t count,
|
||||
read_actor_t actor,
|
||||
void *target)
|
||||
{
|
||||
return bhv_vop_sendfile(vn_from_inode(filp->f_path.dentry->d_inode),
|
||||
filp, pos, IO_INVIS, count, actor, target, NULL);
|
||||
}
|
||||
|
||||
STATIC ssize_t
|
||||
xfs_file_splice_read(
|
||||
struct file *infilp,
|
||||
@ -452,7 +428,6 @@ const struct file_operations xfs_file_operations = {
|
||||
.write = do_sync_write,
|
||||
.aio_read = xfs_file_aio_read,
|
||||
.aio_write = xfs_file_aio_write,
|
||||
.sendfile = xfs_file_sendfile,
|
||||
.splice_read = xfs_file_splice_read,
|
||||
.splice_write = xfs_file_splice_write,
|
||||
.unlocked_ioctl = xfs_file_ioctl,
|
||||
@ -475,7 +450,6 @@ const struct file_operations xfs_invis_file_operations = {
|
||||
.write = do_sync_write,
|
||||
.aio_read = xfs_file_aio_read_invis,
|
||||
.aio_write = xfs_file_aio_write_invis,
|
||||
.sendfile = xfs_file_sendfile_invis,
|
||||
.splice_read = xfs_file_splice_read_invis,
|
||||
.splice_write = xfs_file_splice_write_invis,
|
||||
.unlocked_ioctl = xfs_file_ioctl_invis,
|
||||
|
Reference in New Issue
Block a user