diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-28 12:44:56 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-28 12:44:56 -0400 |
commit | e4c5bf8e3dca827a1b3a6fac494eae8c74b7e1e7 (patch) | |
tree | ea51b391f7d74ca695dcb9f5e46eb02688a92ed9 /fs/compat.c | |
parent | 81280572ca6f54009edfa4deee563e8678784218 (diff) | |
parent | a4ac0d847af9dd34d5953a5e264400326144b6b2 (diff) |
Merge 'staging-next' to Linus's tree
This merges the staging-next tree to Linus's tree and resolves
some conflicts that were present due to changes in other trees that were
affected by files here.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/compat.c')
-rw-r--r-- | fs/compat.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/fs/compat.c b/fs/compat.c index f03abdadc401..52cfeb61da77 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
@@ -29,8 +29,6 @@ | |||
29 | #include <linux/vfs.h> | 29 | #include <linux/vfs.h> |
30 | #include <linux/ioctl.h> | 30 | #include <linux/ioctl.h> |
31 | #include <linux/init.h> | 31 | #include <linux/init.h> |
32 | #include <linux/smb.h> | ||
33 | #include <linux/smb_mount.h> | ||
34 | #include <linux/ncp_mount.h> | 32 | #include <linux/ncp_mount.h> |
35 | #include <linux/nfs4_mount.h> | 33 | #include <linux/nfs4_mount.h> |
36 | #include <linux/syscalls.h> | 34 | #include <linux/syscalls.h> |
@@ -745,30 +743,6 @@ static void *do_ncp_super_data_conv(void *raw_data) | |||
745 | return raw_data; | 743 | return raw_data; |
746 | } | 744 | } |
747 | 745 | ||
748 | struct compat_smb_mount_data { | ||
749 | compat_int_t version; | ||
750 | __compat_uid_t mounted_uid; | ||
751 | __compat_uid_t uid; | ||
752 | __compat_gid_t gid; | ||
753 | compat_mode_t file_mode; | ||
754 | compat_mode_t dir_mode; | ||
755 | }; | ||
756 | |||
757 | static void *do_smb_super_data_conv(void *raw_data) | ||
758 | { | ||
759 | struct smb_mount_data *s = raw_data; | ||
760 | struct compat_smb_mount_data *c_s = raw_data; | ||
761 | |||
762 | if (c_s->version != SMB_MOUNT_OLDVERSION) | ||
763 | goto out; | ||
764 | s->dir_mode = c_s->dir_mode; | ||
765 | s->file_mode = c_s->file_mode; | ||
766 | s->gid = c_s->gid; | ||
767 | s->uid = c_s->uid; | ||
768 | s->mounted_uid = c_s->mounted_uid; | ||
769 | out: | ||
770 | return raw_data; | ||
771 | } | ||
772 | 746 | ||
773 | struct compat_nfs_string { | 747 | struct compat_nfs_string { |
774 | compat_uint_t len; | 748 | compat_uint_t len; |
@@ -835,7 +809,6 @@ static int do_nfs4_super_data_conv(void *raw_data) | |||
835 | return 0; | 809 | return 0; |
836 | } | 810 | } |
837 | 811 | ||
838 | #define SMBFS_NAME "smbfs" | ||
839 | #define NCPFS_NAME "ncpfs" | 812 | #define NCPFS_NAME "ncpfs" |
840 | #define NFS4_NAME "nfs4" | 813 | #define NFS4_NAME "nfs4" |
841 | 814 | ||
@@ -870,9 +843,7 @@ asmlinkage long compat_sys_mount(const char __user * dev_name, | |||
870 | retval = -EINVAL; | 843 | retval = -EINVAL; |
871 | 844 | ||
872 | if (kernel_type && data_page) { | 845 | if (kernel_type && data_page) { |
873 | if (!strcmp(kernel_type, SMBFS_NAME)) { | 846 | if (!strcmp(kernel_type, NCPFS_NAME)) { |
874 | do_smb_super_data_conv((void *)data_page); | ||
875 | } else if (!strcmp(kernel_type, NCPFS_NAME)) { | ||
876 | do_ncp_super_data_conv((void *)data_page); | 847 | do_ncp_super_data_conv((void *)data_page); |
877 | } else if (!strcmp(kernel_type, NFS4_NAME)) { | 848 | } else if (!strcmp(kernel_type, NFS4_NAME)) { |
878 | if (do_nfs4_super_data_conv((void *) data_page)) | 849 | if (do_nfs4_super_data_conv((void *) data_page)) |