From 9dc78c90f3c952f5c01686da6601c47565016290 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 9 Jul 2012 21:33:57 +0200 Subject: s3-aio: Remove unused VFS functions and more Signed-off-by: Jeremy Allison --- examples/VFS/skel_opaque.c | 49 ----------------------------------------- examples/VFS/skel_transparent.c | 42 ----------------------------------- 2 files changed, 91 deletions(-) (limited to 'examples') diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index cf262b661a..56fae8435b 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -741,48 +741,6 @@ static int skel_fsetxattr(vfs_handle_struct *handle, struct files_struct *fsp, c return -1; } -static int skel_aio_read(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb) -{ - errno = ENOSYS; - return -1; -} - -static int skel_aio_write(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb) -{ - errno = ENOSYS; - return -1; -} - -static ssize_t skel_aio_return_fn(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb) -{ - errno = ENOSYS; - return -1; -} - -static int skel_aio_cancel(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb) -{ - errno = ENOSYS; - return -1; -} - -static int skel_aio_error_fn(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb) -{ - errno = ENOSYS; - return -1; -} - -static int skel_aio_fsync(struct vfs_handle_struct *handle, struct files_struct *fsp, int op, SMB_STRUCT_AIOCB *aiocb) -{ - errno = ENOSYS; - return -1; -} - -static int skel_aio_suspend(struct vfs_handle_struct *handle, struct files_struct *fsp, const SMB_STRUCT_AIOCB * const aiocb[], int n, const struct timespec *ts) -{ - errno = ENOSYS; - return -1; -} - static bool skel_aio_force(struct vfs_handle_struct *handle, struct files_struct *fsp) { errno = ENOSYS; @@ -931,13 +889,6 @@ struct vfs_fn_pointers skel_opaque_fns = { .fsetxattr_fn = skel_fsetxattr, /* aio operations */ - .aio_read_fn = skel_aio_read, - .aio_write_fn = skel_aio_write, - .aio_return_fn = skel_aio_return_fn, - .aio_cancel_fn = skel_aio_cancel, - .aio_error_fn = skel_aio_error_fn, - .aio_fsync_fn = skel_aio_fsync, - .aio_suspend_fn = skel_aio_suspend, .aio_force_fn = skel_aio_force, /* offline operations */ diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 819f7b9c08..86a26090e3 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -788,41 +788,6 @@ static int skel_fsetxattr(vfs_handle_struct *handle, struct files_struct *fsp, c return SMB_VFS_NEXT_FSETXATTR(handle, fsp, name, value, size, flags); } -static int skel_aio_read(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb) -{ - return SMB_VFS_NEXT_AIO_READ(handle, fsp, aiocb); -} - -static int skel_aio_write(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb) -{ - return SMB_VFS_NEXT_AIO_WRITE(handle, fsp, aiocb); -} - -static ssize_t skel_aio_return_fn(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb) -{ - return SMB_VFS_NEXT_AIO_RETURN(handle, fsp, aiocb); -} - -static int skel_aio_cancel(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb) -{ - return SMB_VFS_NEXT_AIO_CANCEL(handle, fsp, aiocb); -} - -static int skel_aio_error_fn(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb) -{ - return SMB_VFS_NEXT_AIO_ERROR(handle, fsp, aiocb); -} - -static int skel_aio_fsync(struct vfs_handle_struct *handle, struct files_struct *fsp, int op, SMB_STRUCT_AIOCB *aiocb) -{ - return SMB_VFS_NEXT_AIO_FSYNC(handle, fsp, op, aiocb); -} - -static int skel_aio_suspend(struct vfs_handle_struct *handle, struct files_struct *fsp, const SMB_STRUCT_AIOCB * const aiocb[], int n, const struct timespec *ts) -{ - return SMB_VFS_NEXT_AIO_SUSPEND(handle, fsp, aiocb, n, ts); -} - static bool skel_aio_force(struct vfs_handle_struct *handle, struct files_struct *fsp) { return SMB_VFS_NEXT_AIO_FORCE(handle, fsp); @@ -968,13 +933,6 @@ struct vfs_fn_pointers skel_transparent_fns = { .fsetxattr_fn = skel_fsetxattr, /* aio operations */ - .aio_read_fn = skel_aio_read, - .aio_write_fn = skel_aio_write, - .aio_return_fn = skel_aio_return_fn, - .aio_cancel_fn = skel_aio_cancel, - .aio_error_fn = skel_aio_error_fn, - .aio_fsync_fn = skel_aio_fsync, - .aio_suspend_fn = skel_aio_suspend, .aio_force_fn = skel_aio_force, /* offline operations */ -- cgit