diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/cifsfs.c | 10 | ||||
-rw-r--r-- | fs/cifs/cifsfs.h | 3 | ||||
-rw-r--r-- | fs/cifs/ioctl.c | 4 |
3 files changed, 8 insertions, 9 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 427a7c695896..b6436b888cf9 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -657,7 +657,7 @@ const struct file_operations cifs_file_ops = { | |||
657 | .splice_read = generic_file_splice_read, | 657 | .splice_read = generic_file_splice_read, |
658 | .llseek = cifs_llseek, | 658 | .llseek = cifs_llseek, |
659 | #ifdef CONFIG_CIFS_POSIX | 659 | #ifdef CONFIG_CIFS_POSIX |
660 | .ioctl = cifs_ioctl, | 660 | .unlocked_ioctl = cifs_ioctl, |
661 | #endif /* CONFIG_CIFS_POSIX */ | 661 | #endif /* CONFIG_CIFS_POSIX */ |
662 | 662 | ||
663 | #ifdef CONFIG_CIFS_EXPERIMENTAL | 663 | #ifdef CONFIG_CIFS_EXPERIMENTAL |
@@ -677,7 +677,7 @@ const struct file_operations cifs_file_direct_ops = { | |||
677 | .flush = cifs_flush, | 677 | .flush = cifs_flush, |
678 | .splice_read = generic_file_splice_read, | 678 | .splice_read = generic_file_splice_read, |
679 | #ifdef CONFIG_CIFS_POSIX | 679 | #ifdef CONFIG_CIFS_POSIX |
680 | .ioctl = cifs_ioctl, | 680 | .unlocked_ioctl = cifs_ioctl, |
681 | #endif /* CONFIG_CIFS_POSIX */ | 681 | #endif /* CONFIG_CIFS_POSIX */ |
682 | .llseek = cifs_llseek, | 682 | .llseek = cifs_llseek, |
683 | #ifdef CONFIG_CIFS_EXPERIMENTAL | 683 | #ifdef CONFIG_CIFS_EXPERIMENTAL |
@@ -697,7 +697,7 @@ const struct file_operations cifs_file_nobrl_ops = { | |||
697 | .splice_read = generic_file_splice_read, | 697 | .splice_read = generic_file_splice_read, |
698 | .llseek = cifs_llseek, | 698 | .llseek = cifs_llseek, |
699 | #ifdef CONFIG_CIFS_POSIX | 699 | #ifdef CONFIG_CIFS_POSIX |
700 | .ioctl = cifs_ioctl, | 700 | .unlocked_ioctl = cifs_ioctl, |
701 | #endif /* CONFIG_CIFS_POSIX */ | 701 | #endif /* CONFIG_CIFS_POSIX */ |
702 | 702 | ||
703 | #ifdef CONFIG_CIFS_EXPERIMENTAL | 703 | #ifdef CONFIG_CIFS_EXPERIMENTAL |
@@ -716,7 +716,7 @@ const struct file_operations cifs_file_direct_nobrl_ops = { | |||
716 | .flush = cifs_flush, | 716 | .flush = cifs_flush, |
717 | .splice_read = generic_file_splice_read, | 717 | .splice_read = generic_file_splice_read, |
718 | #ifdef CONFIG_CIFS_POSIX | 718 | #ifdef CONFIG_CIFS_POSIX |
719 | .ioctl = cifs_ioctl, | 719 | .unlocked_ioctl = cifs_ioctl, |
720 | #endif /* CONFIG_CIFS_POSIX */ | 720 | #endif /* CONFIG_CIFS_POSIX */ |
721 | .llseek = cifs_llseek, | 721 | .llseek = cifs_llseek, |
722 | #ifdef CONFIG_CIFS_EXPERIMENTAL | 722 | #ifdef CONFIG_CIFS_EXPERIMENTAL |
@@ -731,7 +731,7 @@ const struct file_operations cifs_dir_ops = { | |||
731 | #ifdef CONFIG_CIFS_EXPERIMENTAL | 731 | #ifdef CONFIG_CIFS_EXPERIMENTAL |
732 | .dir_notify = cifs_dir_notify, | 732 | .dir_notify = cifs_dir_notify, |
733 | #endif /* CONFIG_CIFS_EXPERIMENTAL */ | 733 | #endif /* CONFIG_CIFS_EXPERIMENTAL */ |
734 | .ioctl = cifs_ioctl, | 734 | .unlocked_ioctl = cifs_ioctl, |
735 | }; | 735 | }; |
736 | 736 | ||
737 | static void | 737 | static void |
diff --git a/fs/cifs/cifsfs.h b/fs/cifs/cifsfs.h index cd1301a09b3b..25a6cbd15529 100644 --- a/fs/cifs/cifsfs.h +++ b/fs/cifs/cifsfs.h | |||
@@ -95,8 +95,7 @@ extern int cifs_setxattr(struct dentry *, const char *, const void *, | |||
95 | size_t, int); | 95 | size_t, int); |
96 | extern ssize_t cifs_getxattr(struct dentry *, const char *, void *, size_t); | 96 | extern ssize_t cifs_getxattr(struct dentry *, const char *, void *, size_t); |
97 | extern ssize_t cifs_listxattr(struct dentry *, char *, size_t); | 97 | extern ssize_t cifs_listxattr(struct dentry *, char *, size_t); |
98 | extern int cifs_ioctl(struct inode *inode, struct file *filep, | 98 | extern long cifs_ioctl(struct file *filep, unsigned int cmd, unsigned long arg); |
99 | unsigned int command, unsigned long arg); | ||
100 | 99 | ||
101 | #ifdef CONFIG_CIFS_EXPERIMENTAL | 100 | #ifdef CONFIG_CIFS_EXPERIMENTAL |
102 | extern const struct export_operations cifs_export_ops; | 101 | extern const struct export_operations cifs_export_ops; |
diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c index 5c792df13d62..0088a5b52564 100644 --- a/fs/cifs/ioctl.c +++ b/fs/cifs/ioctl.c | |||
@@ -30,9 +30,9 @@ | |||
30 | 30 | ||
31 | #define CIFS_IOC_CHECKUMOUNT _IO(0xCF, 2) | 31 | #define CIFS_IOC_CHECKUMOUNT _IO(0xCF, 2) |
32 | 32 | ||
33 | int cifs_ioctl(struct inode *inode, struct file *filep, | 33 | long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) |
34 | unsigned int command, unsigned long arg) | ||
35 | { | 34 | { |
35 | struct inode *inode = filep->f_dentry->d_inode; | ||
36 | int rc = -ENOTTY; /* strange error - but the precedent */ | 36 | int rc = -ENOTTY; /* strange error - but the precedent */ |
37 | int xid; | 37 | int xid; |
38 | struct cifs_sb_info *cifs_sb; | 38 | struct cifs_sb_info *cifs_sb; |