diff options
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index e7931cc55d0c..de7f9168a118 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -54,7 +54,6 @@ | |||
54 | #endif | 54 | #endif |
55 | 55 | ||
56 | int cifsFYI = 0; | 56 | int cifsFYI = 0; |
57 | int cifsERROR = 1; | ||
58 | int traceSMB = 0; | 57 | int traceSMB = 0; |
59 | bool enable_oplocks = true; | 58 | bool enable_oplocks = true; |
60 | unsigned int linuxExtEnabled = 1; | 59 | unsigned int linuxExtEnabled = 1; |
@@ -64,24 +63,23 @@ unsigned int global_secflags = CIFSSEC_DEF; | |||
64 | unsigned int sign_CIFS_PDUs = 1; | 63 | unsigned int sign_CIFS_PDUs = 1; |
65 | static const struct super_operations cifs_super_ops; | 64 | static const struct super_operations cifs_super_ops; |
66 | unsigned int CIFSMaxBufSize = CIFS_MAX_MSGSIZE; | 65 | unsigned int CIFSMaxBufSize = CIFS_MAX_MSGSIZE; |
67 | module_param(CIFSMaxBufSize, int, 0); | 66 | module_param(CIFSMaxBufSize, uint, 0); |
68 | MODULE_PARM_DESC(CIFSMaxBufSize, "Network buffer size (not including header). " | 67 | MODULE_PARM_DESC(CIFSMaxBufSize, "Network buffer size (not including header). " |
69 | "Default: 16384 Range: 8192 to 130048"); | 68 | "Default: 16384 Range: 8192 to 130048"); |
70 | unsigned int cifs_min_rcv = CIFS_MIN_RCV_POOL; | 69 | unsigned int cifs_min_rcv = CIFS_MIN_RCV_POOL; |
71 | module_param(cifs_min_rcv, int, 0); | 70 | module_param(cifs_min_rcv, uint, 0); |
72 | MODULE_PARM_DESC(cifs_min_rcv, "Network buffers in pool. Default: 4 Range: " | 71 | MODULE_PARM_DESC(cifs_min_rcv, "Network buffers in pool. Default: 4 Range: " |
73 | "1 to 64"); | 72 | "1 to 64"); |
74 | unsigned int cifs_min_small = 30; | 73 | unsigned int cifs_min_small = 30; |
75 | module_param(cifs_min_small, int, 0); | 74 | module_param(cifs_min_small, uint, 0); |
76 | MODULE_PARM_DESC(cifs_min_small, "Small network buffers in pool. Default: 30 " | 75 | MODULE_PARM_DESC(cifs_min_small, "Small network buffers in pool. Default: 30 " |
77 | "Range: 2 to 256"); | 76 | "Range: 2 to 256"); |
78 | unsigned int cifs_max_pending = CIFS_MAX_REQ; | 77 | unsigned int cifs_max_pending = CIFS_MAX_REQ; |
79 | module_param(cifs_max_pending, int, 0444); | 78 | module_param(cifs_max_pending, uint, 0444); |
80 | MODULE_PARM_DESC(cifs_max_pending, "Simultaneous requests to server. " | 79 | MODULE_PARM_DESC(cifs_max_pending, "Simultaneous requests to server. " |
81 | "Default: 32767 Range: 2 to 32767."); | 80 | "Default: 32767 Range: 2 to 32767."); |
82 | module_param(enable_oplocks, bool, 0644); | 81 | module_param(enable_oplocks, bool, 0644); |
83 | MODULE_PARM_DESC(enable_oplocks, "Enable or disable oplocks (bool). Default:" | 82 | MODULE_PARM_DESC(enable_oplocks, "Enable or disable oplocks. Default: y/Y/1"); |
84 | "y/Y/1"); | ||
85 | 83 | ||
86 | extern mempool_t *cifs_sm_req_poolp; | 84 | extern mempool_t *cifs_sm_req_poolp; |
87 | extern mempool_t *cifs_req_poolp; | 85 | extern mempool_t *cifs_req_poolp; |
@@ -540,8 +538,8 @@ cifs_get_root(struct smb_vol *vol, struct super_block *sb) | |||
540 | char *s, *p; | 538 | char *s, *p; |
541 | char sep; | 539 | char sep; |
542 | 540 | ||
543 | full_path = build_path_to_root(vol, cifs_sb, | 541 | full_path = cifs_build_path_to_root(vol, cifs_sb, |
544 | cifs_sb_master_tcon(cifs_sb)); | 542 | cifs_sb_master_tcon(cifs_sb)); |
545 | if (full_path == NULL) | 543 | if (full_path == NULL) |
546 | return ERR_PTR(-ENOMEM); | 544 | return ERR_PTR(-ENOMEM); |
547 | 545 | ||
@@ -695,13 +693,13 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const struct iovec *iov, | |||
695 | return written; | 693 | return written; |
696 | } | 694 | } |
697 | 695 | ||
698 | static loff_t cifs_llseek(struct file *file, loff_t offset, int origin) | 696 | static loff_t cifs_llseek(struct file *file, loff_t offset, int whence) |
699 | { | 697 | { |
700 | /* | 698 | /* |
701 | * origin == SEEK_END || SEEK_DATA || SEEK_HOLE => we must revalidate | 699 | * whence == SEEK_END || SEEK_DATA || SEEK_HOLE => we must revalidate |
702 | * the cached file length | 700 | * the cached file length |
703 | */ | 701 | */ |
704 | if (origin != SEEK_SET && origin != SEEK_CUR) { | 702 | if (whence != SEEK_SET && whence != SEEK_CUR) { |
705 | int rc; | 703 | int rc; |
706 | struct inode *inode = file->f_path.dentry->d_inode; | 704 | struct inode *inode = file->f_path.dentry->d_inode; |
707 | 705 | ||
@@ -728,7 +726,7 @@ static loff_t cifs_llseek(struct file *file, loff_t offset, int origin) | |||
728 | if (rc < 0) | 726 | if (rc < 0) |
729 | return (loff_t)rc; | 727 | return (loff_t)rc; |
730 | } | 728 | } |
731 | return generic_file_llseek(file, offset, origin); | 729 | return generic_file_llseek(file, offset, whence); |
732 | } | 730 | } |
733 | 731 | ||
734 | static int cifs_setlease(struct file *file, long arg, struct file_lock **lease) | 732 | static int cifs_setlease(struct file *file, long arg, struct file_lock **lease) |
@@ -1205,7 +1203,6 @@ exit_cifs(void) | |||
1205 | unregister_filesystem(&cifs_fs_type); | 1203 | unregister_filesystem(&cifs_fs_type); |
1206 | cifs_dfs_release_automount_timer(); | 1204 | cifs_dfs_release_automount_timer(); |
1207 | #ifdef CONFIG_CIFS_ACL | 1205 | #ifdef CONFIG_CIFS_ACL |
1208 | cifs_destroy_idmaptrees(); | ||
1209 | exit_cifs_idmap(); | 1206 | exit_cifs_idmap(); |
1210 | #endif | 1207 | #endif |
1211 | #ifdef CONFIG_CIFS_UPCALL | 1208 | #ifdef CONFIG_CIFS_UPCALL |