diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-04-06 22:01:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 11:31:18 -0400 |
commit | 8082d36aed26c4fb6ed43e4008303682eabf839e (patch) | |
tree | d51eff46a3ebe29e0a445597570599b5b7c4a037 /include/linux/nilfs2_fs.h | |
parent | dc498d09be28172846cacded35ca2378222a8c7b (diff) |
nilfs2: remove compat ioctl code
This removes compat code from the nilfs ioctls and applies the same
function for both .ioctl and .compat_ioctl file operations.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/nilfs2_fs.h')
-rw-r--r-- | include/linux/nilfs2_fs.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/include/linux/nilfs2_fs.h b/include/linux/nilfs2_fs.h index 8fb64ce285fd..306c446e694e 100644 --- a/include/linux/nilfs2_fs.h +++ b/include/linux/nilfs2_fs.h | |||
@@ -793,45 +793,4 @@ struct nilfs_bdesc { | |||
793 | #define NILFS_IOCTL_RESIZE \ | 793 | #define NILFS_IOCTL_RESIZE \ |
794 | _IOW(NILFS_IOCTL_IDENT, 0x8B, __u64) | 794 | _IOW(NILFS_IOCTL_IDENT, 0x8B, __u64) |
795 | 795 | ||
796 | /* compat_ioctl */ | ||
797 | #ifdef CONFIG_COMPAT | ||
798 | #include <linux/compat.h> | ||
799 | |||
800 | struct nilfs_cpmode32 { | ||
801 | __u64 cm_cno; | ||
802 | compat_int_t cm_mode; | ||
803 | }; | ||
804 | |||
805 | struct nilfs_argv32 { | ||
806 | compat_caddr_t v_base; | ||
807 | compat_size_t v_nmembs; | ||
808 | compat_size_t v_size; | ||
809 | compat_int_t v_index; | ||
810 | compat_int_t v_flags; | ||
811 | }; | ||
812 | |||
813 | struct nilfs_sustat32 { | ||
814 | __u64 ss_nsegs; | ||
815 | __u64 ss_ncleansegs; | ||
816 | __u64 ss_ndirtysegs; | ||
817 | compat_time_t ss_ctime; | ||
818 | compat_time_t ss_nongc_ctime; | ||
819 | }; | ||
820 | |||
821 | #define NILFS_IOCTL32_CHANGE_CPMODE \ | ||
822 | _IOW(NILFS_IOCTL_IDENT, 0x80, struct nilfs_cpmode32) | ||
823 | #define NILFS_IOCTL32_GET_CPINFO \ | ||
824 | _IOR(NILFS_IOCTL_IDENT, 0x82, struct nilfs_argv32) | ||
825 | #define NILFS_IOCTL32_GET_SUINFO \ | ||
826 | _IOR(NILFS_IOCTL_IDENT, 0x84, struct nilfs_argv32) | ||
827 | #define NILFS_IOCTL32_GET_SUSTAT \ | ||
828 | _IOR(NILFS_IOCTL_IDENT, 0x85, struct nilfs_sustat32) | ||
829 | #define NILFS_IOCTL32_GET_VINFO \ | ||
830 | _IOWR(NILFS_IOCTL_IDENT, 0x86, struct nilfs_argv32) | ||
831 | #define NILFS_IOCTL32_GET_BDESCS \ | ||
832 | _IOWR(NILFS_IOCTL_IDENT, 0x87, struct nilfs_argv32) | ||
833 | #define NILFS_IOCTL32_CLEAN_SEGMENTS \ | ||
834 | _IOW(NILFS_IOCTL_IDENT, 0x88, struct nilfs_argv32[5]) | ||
835 | #endif /* CONFIG_COMPAT */ | ||
836 | |||
837 | #endif /* _LINUX_NILFS_FS_H */ | 796 | #endif /* _LINUX_NILFS_FS_H */ |