diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-03-09 15:56:28 -0800 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-05-02 15:07:16 -0700 |
commit | 586d232b191b776a1c6d51c10c662b8b3e238fdf (patch) | |
tree | 8963261875e046d405d6e23b7ee67ff7c03f5c91 /fs/ocfs2/file.c | |
parent | 40caf5ea5a7d47f8a33e26b63ca81dea4b5109d2 (diff) | |
download | lwn-586d232b191b776a1c6d51c10c662b8b3e238fdf.tar.gz lwn-586d232b191b776a1c6d51c10c662b8b3e238fdf.zip |
ocfs2: Implement compat_ioctl()
We need this to support 32 bit system calls on 64 bit kernels.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r-- | fs/ocfs2/file.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 520a2a6d7670..3b5a1576ae10 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -1853,6 +1853,9 @@ const struct file_operations ocfs2_fops = { .aio_read = ocfs2_file_aio_read, .aio_write = ocfs2_file_aio_write, .ioctl = ocfs2_ioctl, +#ifdef CONFIG_COMPAT + .compat_ioctl = ocfs2_compat_ioctl, +#endif .splice_read = ocfs2_file_splice_read, .splice_write = ocfs2_file_splice_write, }; @@ -1862,4 +1865,7 @@ const struct file_operations ocfs2_dops = { .readdir = ocfs2_readdir, .fsync = ocfs2_sync_file, .ioctl = ocfs2_ioctl, +#ifdef CONFIG_COMPAT + .compat_ioctl = ocfs2_compat_ioctl, +#endif }; |