aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2012-06-20 03:21:16 -0400
committerSteve French <smfrench@gmail.com>2012-07-24 11:25:08 -0400
commit6d5786a34d98bffb8ad50d8053d1e53231fe0636 (patch)
treeae49860befc52cb18dfb2b86929878a204289601 /fs/cifs/cifssmb.c
parent2e6e02ab6ddbd539fd7e092973daf057adbd53dc (diff)
CIFS: Rename Get/FreeXid and make them work with unsigned int
Acked-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c146
1 files changed, 77 insertions, 69 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 98fc454827af..7a3b4a3b113b 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -828,8 +828,9 @@ session_already_dead:
828} 828}
829 829
830int 830int
831CIFSPOSIXDelFile(const int xid, struct cifs_tcon *tcon, const char *fileName, 831CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon,
832 __u16 type, const struct nls_table *nls_codepage, int remap) 832 const char *fileName, __u16 type,
833 const struct nls_table *nls_codepage, int remap)
833{ 834{
834 TRANSACTION2_SPI_REQ *pSMB = NULL; 835 TRANSACTION2_SPI_REQ *pSMB = NULL;
835 TRANSACTION2_SPI_RSP *pSMBr = NULL; 836 TRANSACTION2_SPI_RSP *pSMBr = NULL;
@@ -903,8 +904,9 @@ PsxDelete:
903} 904}
904 905
905int 906int
906CIFSSMBDelFile(const int xid, struct cifs_tcon *tcon, const char *fileName, 907CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon,
907 const struct nls_table *nls_codepage, int remap) 908 const char *fileName, const struct nls_table *nls_codepage,
909 int remap)
908{ 910{
909 DELETE_FILE_REQ *pSMB = NULL; 911 DELETE_FILE_REQ *pSMB = NULL;
910 DELETE_FILE_RSP *pSMBr = NULL; 912 DELETE_FILE_RSP *pSMBr = NULL;
@@ -948,8 +950,9 @@ DelFileRetry:
948} 950}
949 951
950int 952int
951CIFSSMBRmDir(const int xid, struct cifs_tcon *tcon, const char *dirName, 953CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon,
952 const struct nls_table *nls_codepage, int remap) 954 const char *dirName, const struct nls_table *nls_codepage,
955 int remap)
953{ 956{
954 DELETE_DIRECTORY_REQ *pSMB = NULL; 957 DELETE_DIRECTORY_REQ *pSMB = NULL;
955 DELETE_DIRECTORY_RSP *pSMBr = NULL; 958 DELETE_DIRECTORY_RSP *pSMBr = NULL;
@@ -991,7 +994,7 @@ RmDirRetry:
991} 994}
992 995
993int 996int
994CIFSSMBMkDir(const int xid, struct cifs_tcon *tcon, 997CIFSSMBMkDir(const unsigned int xid, struct cifs_tcon *tcon,
995 const char *name, const struct nls_table *nls_codepage, int remap) 998 const char *name, const struct nls_table *nls_codepage, int remap)
996{ 999{
997 int rc = 0; 1000 int rc = 0;
@@ -1034,10 +1037,11 @@ MkDirRetry:
1034} 1037}
1035 1038
1036int 1039int
1037CIFSPOSIXCreate(const int xid, struct cifs_tcon *tcon, __u32 posix_flags, 1040CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon,
1038 __u64 mode, __u16 *netfid, FILE_UNIX_BASIC_INFO *pRetData, 1041 __u32 posix_flags, __u64 mode, __u16 *netfid,
1039 __u32 *pOplock, const char *name, 1042 FILE_UNIX_BASIC_INFO *pRetData, __u32 *pOplock,
1040 const struct nls_table *nls_codepage, int remap) 1043 const char *name, const struct nls_table *nls_codepage,
1044 int remap)
1041{ 1045{
1042 TRANSACTION2_SPI_REQ *pSMB = NULL; 1046 TRANSACTION2_SPI_REQ *pSMB = NULL;
1043 TRANSACTION2_SPI_RSP *pSMBr = NULL; 1047 TRANSACTION2_SPI_RSP *pSMBr = NULL;
@@ -1200,7 +1204,7 @@ access_flags_to_smbopen_mode(const int access_flags)
1200} 1204}
1201 1205
1202int 1206int
1203SMBLegacyOpen(const int xid, struct cifs_tcon *tcon, 1207SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
1204 const char *fileName, const int openDisposition, 1208 const char *fileName, const int openDisposition,
1205 const int access_flags, const int create_options, __u16 *netfid, 1209 const int access_flags, const int create_options, __u16 *netfid,
1206 int *pOplock, FILE_ALL_INFO *pfile_info, 1210 int *pOplock, FILE_ALL_INFO *pfile_info,
@@ -1307,7 +1311,7 @@ OldOpenRetry:
1307} 1311}
1308 1312
1309int 1313int
1310CIFSSMBOpen(const int xid, struct cifs_tcon *tcon, 1314CIFSSMBOpen(const unsigned int xid, struct cifs_tcon *tcon,
1311 const char *fileName, const int openDisposition, 1315 const char *fileName, const int openDisposition,
1312 const int access_flags, const int create_options, __u16 *netfid, 1316 const int access_flags, const int create_options, __u16 *netfid,
1313 int *pOplock, FILE_ALL_INFO *pfile_info, 1317 int *pOplock, FILE_ALL_INFO *pfile_info,
@@ -1657,8 +1661,8 @@ cifs_async_readv(struct cifs_readdata *rdata)
1657} 1661}
1658 1662
1659int 1663int
1660CIFSSMBRead(const int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, 1664CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms,
1661 char **buf, int *pbuf_type) 1665 unsigned int *nbytes, char **buf, int *pbuf_type)
1662{ 1666{
1663 int rc = -EACCES; 1667 int rc = -EACCES;
1664 READ_REQ *pSMB = NULL; 1668 READ_REQ *pSMB = NULL;
@@ -1769,7 +1773,7 @@ CIFSSMBRead(const int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes,
1769 1773
1770 1774
1771int 1775int
1772CIFSSMBWrite(const int xid, struct cifs_io_parms *io_parms, 1776CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms,
1773 unsigned int *nbytes, const char *buf, 1777 unsigned int *nbytes, const char *buf,
1774 const char __user *ubuf, const int long_op) 1778 const char __user *ubuf, const int long_op)
1775{ 1779{
@@ -2136,7 +2140,7 @@ async_writev_out:
2136} 2140}
2137 2141
2138int 2142int
2139CIFSSMBWrite2(const int xid, struct cifs_io_parms *io_parms, 2143CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms,
2140 unsigned int *nbytes, struct kvec *iov, int n_vec, 2144 unsigned int *nbytes, struct kvec *iov, int n_vec,
2141 const int long_op) 2145 const int long_op)
2142{ 2146{
@@ -2244,8 +2248,8 @@ CIFSSMBWrite2(const int xid, struct cifs_io_parms *io_parms,
2244 return rc; 2248 return rc;
2245} 2249}
2246 2250
2247int cifs_lockv(const int xid, struct cifs_tcon *tcon, const __u16 netfid, 2251int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon,
2248 const __u8 lock_type, const __u32 num_unlock, 2252 const __u16 netfid, const __u8 lock_type, const __u32 num_unlock,
2249 const __u32 num_lock, LOCKING_ANDX_RANGE *buf) 2253 const __u32 num_lock, LOCKING_ANDX_RANGE *buf)
2250{ 2254{
2251 int rc = 0; 2255 int rc = 0;
@@ -2286,7 +2290,7 @@ int cifs_lockv(const int xid, struct cifs_tcon *tcon, const __u16 netfid,
2286} 2290}
2287 2291
2288int 2292int
2289CIFSSMBLock(const int xid, struct cifs_tcon *tcon, 2293CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon,
2290 const __u16 smb_file_id, const __u32 netpid, const __u64 len, 2294 const __u16 smb_file_id, const __u32 netpid, const __u64 len,
2291 const __u64 offset, const __u32 numUnlock, 2295 const __u64 offset, const __u32 numUnlock,
2292 const __u32 numLock, const __u8 lockType, 2296 const __u32 numLock, const __u8 lockType,
@@ -2356,7 +2360,7 @@ CIFSSMBLock(const int xid, struct cifs_tcon *tcon,
2356} 2360}
2357 2361
2358int 2362int
2359CIFSSMBPosixLock(const int xid, struct cifs_tcon *tcon, 2363CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon,
2360 const __u16 smb_file_id, const __u32 netpid, 2364 const __u16 smb_file_id, const __u32 netpid,
2361 const loff_t start_offset, const __u64 len, 2365 const loff_t start_offset, const __u64 len,
2362 struct file_lock *pLockData, const __u16 lock_type, 2366 struct file_lock *pLockData, const __u16 lock_type,
@@ -2492,7 +2496,7 @@ plk_err_exit:
2492 2496
2493 2497
2494int 2498int
2495CIFSSMBClose(const int xid, struct cifs_tcon *tcon, int smb_file_id) 2499CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon, int smb_file_id)
2496{ 2500{
2497 int rc = 0; 2501 int rc = 0;
2498 CLOSE_REQ *pSMB = NULL; 2502 CLOSE_REQ *pSMB = NULL;
@@ -2525,7 +2529,7 @@ CIFSSMBClose(const int xid, struct cifs_tcon *tcon, int smb_file_id)
2525} 2529}
2526 2530
2527int 2531int
2528CIFSSMBFlush(const int xid, struct cifs_tcon *tcon, int smb_file_id) 2532CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon, int smb_file_id)
2529{ 2533{
2530 int rc = 0; 2534 int rc = 0;
2531 FLUSH_REQ *pSMB = NULL; 2535 FLUSH_REQ *pSMB = NULL;
@@ -2546,7 +2550,7 @@ CIFSSMBFlush(const int xid, struct cifs_tcon *tcon, int smb_file_id)
2546} 2550}
2547 2551
2548int 2552int
2549CIFSSMBRename(const int xid, struct cifs_tcon *tcon, 2553CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon,
2550 const char *fromName, const char *toName, 2554 const char *fromName, const char *toName,
2551 const struct nls_table *nls_codepage, int remap) 2555 const struct nls_table *nls_codepage, int remap)
2552{ 2556{
@@ -2613,7 +2617,7 @@ renameRetry:
2613 return rc; 2617 return rc;
2614} 2618}
2615 2619
2616int CIFSSMBRenameOpenFile(const int xid, struct cifs_tcon *pTcon, 2620int CIFSSMBRenameOpenFile(const unsigned int xid, struct cifs_tcon *pTcon,
2617 int netfid, const char *target_name, 2621 int netfid, const char *target_name,
2618 const struct nls_table *nls_codepage, int remap) 2622 const struct nls_table *nls_codepage, int remap)
2619{ 2623{
@@ -2695,9 +2699,9 @@ int CIFSSMBRenameOpenFile(const int xid, struct cifs_tcon *pTcon,
2695} 2699}
2696 2700
2697int 2701int
2698CIFSSMBCopy(const int xid, struct cifs_tcon *tcon, const char *fromName, 2702CIFSSMBCopy(const unsigned int xid, struct cifs_tcon *tcon,
2699 const __u16 target_tid, const char *toName, const int flags, 2703 const char *fromName, const __u16 target_tid, const char *toName,
2700 const struct nls_table *nls_codepage, int remap) 2704 const int flags, const struct nls_table *nls_codepage, int remap)
2701{ 2705{
2702 int rc = 0; 2706 int rc = 0;
2703 COPY_REQ *pSMB = NULL; 2707 COPY_REQ *pSMB = NULL;
@@ -2763,7 +2767,7 @@ copyRetry:
2763} 2767}
2764 2768
2765int 2769int
2766CIFSUnixCreateSymLink(const int xid, struct cifs_tcon *tcon, 2770CIFSUnixCreateSymLink(const unsigned int xid, struct cifs_tcon *tcon,
2767 const char *fromName, const char *toName, 2771 const char *fromName, const char *toName,
2768 const struct nls_table *nls_codepage) 2772 const struct nls_table *nls_codepage)
2769{ 2773{
@@ -2852,7 +2856,7 @@ createSymLinkRetry:
2852} 2856}
2853 2857
2854int 2858int
2855CIFSUnixCreateHardLink(const int xid, struct cifs_tcon *tcon, 2859CIFSUnixCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon,
2856 const char *fromName, const char *toName, 2860 const char *fromName, const char *toName,
2857 const struct nls_table *nls_codepage, int remap) 2861 const struct nls_table *nls_codepage, int remap)
2858{ 2862{
@@ -2937,7 +2941,7 @@ createHardLinkRetry:
2937} 2941}
2938 2942
2939int 2943int
2940CIFSCreateHardLink(const int xid, struct cifs_tcon *tcon, 2944CIFSCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon,
2941 const char *fromName, const char *toName, 2945 const char *fromName, const char *toName,
2942 const struct nls_table *nls_codepage, int remap) 2946 const struct nls_table *nls_codepage, int remap)
2943{ 2947{
@@ -3009,7 +3013,7 @@ winCreateHardLinkRetry:
3009} 3013}
3010 3014
3011int 3015int
3012CIFSSMBUnixQuerySymLink(const int xid, struct cifs_tcon *tcon, 3016CIFSSMBUnixQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon,
3013 const unsigned char *searchName, char **symlinkinfo, 3017 const unsigned char *searchName, char **symlinkinfo,
3014 const struct nls_table *nls_codepage) 3018 const struct nls_table *nls_codepage)
3015{ 3019{
@@ -3114,7 +3118,7 @@ querySymLinkRetry:
3114 * it is not compiled in by default until callers fixed up and more tested. 3118 * it is not compiled in by default until callers fixed up and more tested.
3115 */ 3119 */
3116int 3120int
3117CIFSSMBQueryReparseLinkInfo(const int xid, struct cifs_tcon *tcon, 3121CIFSSMBQueryReparseLinkInfo(const unsigned int xid, struct cifs_tcon *tcon,
3118 const unsigned char *searchName, 3122 const unsigned char *searchName,
3119 char *symlinkinfo, const int buflen, __u16 fid, 3123 char *symlinkinfo, const int buflen, __u16 fid,
3120 const struct nls_table *nls_codepage) 3124 const struct nls_table *nls_codepage)
@@ -3351,7 +3355,7 @@ static __u16 ACL_to_cifs_posix(char *parm_data, const char *pACL,
3351} 3355}
3352 3356
3353int 3357int
3354CIFSSMBGetPosixACL(const int xid, struct cifs_tcon *tcon, 3358CIFSSMBGetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
3355 const unsigned char *searchName, 3359 const unsigned char *searchName,
3356 char *acl_inf, const int buflen, const int acl_type, 3360 char *acl_inf, const int buflen, const int acl_type,
3357 const struct nls_table *nls_codepage, int remap) 3361 const struct nls_table *nls_codepage, int remap)
@@ -3440,7 +3444,7 @@ queryAclRetry:
3440} 3444}
3441 3445
3442int 3446int
3443CIFSSMBSetPosixACL(const int xid, struct cifs_tcon *tcon, 3447CIFSSMBSetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
3444 const unsigned char *fileName, 3448 const unsigned char *fileName,
3445 const char *local_acl, const int buflen, 3449 const char *local_acl, const int buflen,
3446 const int acl_type, 3450 const int acl_type,
@@ -3520,7 +3524,7 @@ setACLerrorExit:
3520 3524
3521/* BB fix tabs in this function FIXME BB */ 3525/* BB fix tabs in this function FIXME BB */
3522int 3526int
3523CIFSGetExtAttr(const int xid, struct cifs_tcon *tcon, 3527CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon,
3524 const int netfid, __u64 *pExtAttrBits, __u64 *pMask) 3528 const int netfid, __u64 *pExtAttrBits, __u64 *pMask)
3525{ 3529{
3526 int rc = 0; 3530 int rc = 0;
@@ -3695,7 +3699,7 @@ validate_ntransact(char *buf, char **ppparm, char **ppdata,
3695 3699
3696/* Get Security Descriptor (by handle) from remote server for a file or dir */ 3700/* Get Security Descriptor (by handle) from remote server for a file or dir */
3697int 3701int
3698CIFSSMBGetCIFSACL(const int xid, struct cifs_tcon *tcon, __u16 fid, 3702CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid,
3699 struct cifs_ntsd **acl_inf, __u32 *pbuflen) 3703 struct cifs_ntsd **acl_inf, __u32 *pbuflen)
3700{ 3704{
3701 int rc = 0; 3705 int rc = 0;
@@ -3787,7 +3791,7 @@ qsec_out:
3787} 3791}
3788 3792
3789int 3793int
3790CIFSSMBSetCIFSACL(const int xid, struct cifs_tcon *tcon, __u16 fid, 3794CIFSSMBSetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid,
3791 struct cifs_ntsd *pntsd, __u32 acllen, int aclflag) 3795 struct cifs_ntsd *pntsd, __u32 acllen, int aclflag)
3792{ 3796{
3793 __u16 byte_count, param_count, data_count, param_offset, data_offset; 3797 __u16 byte_count, param_count, data_count, param_offset, data_offset;
@@ -3851,7 +3855,7 @@ setCifsAclRetry:
3851 3855
3852/* Legacy Query Path Information call for lookup to old servers such 3856/* Legacy Query Path Information call for lookup to old servers such
3853 as Win9x/WinME */ 3857 as Win9x/WinME */
3854int SMBQueryInformation(const int xid, struct cifs_tcon *tcon, 3858int SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon,
3855 const unsigned char *searchName, 3859 const unsigned char *searchName,
3856 FILE_ALL_INFO *pFinfo, 3860 FILE_ALL_INFO *pFinfo,
3857 const struct nls_table *nls_codepage, int remap) 3861 const struct nls_table *nls_codepage, int remap)
@@ -3920,7 +3924,7 @@ QInfRetry:
3920} 3924}
3921 3925
3922int 3926int
3923CIFSSMBQFileInfo(const int xid, struct cifs_tcon *tcon, 3927CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
3924 u16 netfid, FILE_ALL_INFO *pFindData) 3928 u16 netfid, FILE_ALL_INFO *pFindData)
3925{ 3929{
3926 struct smb_t2_qfi_req *pSMB = NULL; 3930 struct smb_t2_qfi_req *pSMB = NULL;
@@ -3987,7 +3991,7 @@ QFileInfoRetry:
3987} 3991}
3988 3992
3989int 3993int
3990CIFSSMBQPathInfo(const int xid, struct cifs_tcon *tcon, 3994CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
3991 const unsigned char *searchName, 3995 const unsigned char *searchName,
3992 FILE_ALL_INFO *pFindData, 3996 FILE_ALL_INFO *pFindData,
3993 int legacy /* old style infolevel */, 3997 int legacy /* old style infolevel */,
@@ -4088,7 +4092,7 @@ QPathInfoRetry:
4088} 4092}
4089 4093
4090int 4094int
4091CIFSSMBUnixQFileInfo(const int xid, struct cifs_tcon *tcon, 4095CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
4092 u16 netfid, FILE_UNIX_BASIC_INFO *pFindData) 4096 u16 netfid, FILE_UNIX_BASIC_INFO *pFindData)
4093{ 4097{
4094 struct smb_t2_qfi_req *pSMB = NULL; 4098 struct smb_t2_qfi_req *pSMB = NULL;
@@ -4157,7 +4161,7 @@ UnixQFileInfoRetry:
4157} 4161}
4158 4162
4159int 4163int
4160CIFSSMBUnixQPathInfo(const int xid, struct cifs_tcon *tcon, 4164CIFSSMBUnixQPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
4161 const unsigned char *searchName, 4165 const unsigned char *searchName,
4162 FILE_UNIX_BASIC_INFO *pFindData, 4166 FILE_UNIX_BASIC_INFO *pFindData,
4163 const struct nls_table *nls_codepage, int remap) 4167 const struct nls_table *nls_codepage, int remap)
@@ -4243,7 +4247,7 @@ UnixQPathInfoRetry:
4243 4247
4244/* xid, tcon, searchName and codepage are input parms, rest are returned */ 4248/* xid, tcon, searchName and codepage are input parms, rest are returned */
4245int 4249int
4246CIFSFindFirst(const int xid, struct cifs_tcon *tcon, 4250CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon,
4247 const char *searchName, 4251 const char *searchName,
4248 const struct nls_table *nls_codepage, 4252 const struct nls_table *nls_codepage,
4249 __u16 *pnetfid, __u16 search_flags, 4253 __u16 *pnetfid, __u16 search_flags,
@@ -4388,8 +4392,9 @@ findFirstRetry:
4388 return rc; 4392 return rc;
4389} 4393}
4390 4394
4391int CIFSFindNext(const int xid, struct cifs_tcon *tcon, __u16 searchHandle, 4395int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon,
4392 __u16 search_flags, struct cifs_search_info *psrch_inf) 4396 __u16 searchHandle, __u16 search_flags,
4397 struct cifs_search_info *psrch_inf)
4393{ 4398{
4394 TRANSACTION2_FNEXT_REQ *pSMB = NULL; 4399 TRANSACTION2_FNEXT_REQ *pSMB = NULL;
4395 TRANSACTION2_FNEXT_RSP *pSMBr = NULL; 4400 TRANSACTION2_FNEXT_RSP *pSMBr = NULL;
@@ -4523,7 +4528,7 @@ FNext2_err_exit:
4523} 4528}
4524 4529
4525int 4530int
4526CIFSFindClose(const int xid, struct cifs_tcon *tcon, 4531CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon,
4527 const __u16 searchHandle) 4532 const __u16 searchHandle)
4528{ 4533{
4529 int rc = 0; 4534 int rc = 0;
@@ -4555,7 +4560,7 @@ CIFSFindClose(const int xid, struct cifs_tcon *tcon,
4555} 4560}
4556 4561
4557int 4562int
4558CIFSGetSrvInodeNumber(const int xid, struct cifs_tcon *tcon, 4563CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon,
4559 const unsigned char *searchName, 4564 const unsigned char *searchName,
4560 __u64 *inode_number, 4565 __u64 *inode_number,
4561 const struct nls_table *nls_codepage, int remap) 4566 const struct nls_table *nls_codepage, int remap)
@@ -4762,7 +4767,7 @@ parse_DFS_referrals_exit:
4762} 4767}
4763 4768
4764int 4769int
4765CIFSGetDFSRefer(const int xid, struct cifs_ses *ses, 4770CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
4766 const unsigned char *searchName, 4771 const unsigned char *searchName,
4767 struct dfs_info3_param **target_nodes, 4772 struct dfs_info3_param **target_nodes,
4768 unsigned int *num_of_nodes, 4773 unsigned int *num_of_nodes,
@@ -4877,7 +4882,8 @@ GetDFSRefExit:
4877 4882
4878/* Query File System Info such as free space to old servers such as Win 9x */ 4883/* Query File System Info such as free space to old servers such as Win 9x */
4879int 4884int
4880SMBOldQFSInfo(const int xid, struct cifs_tcon *tcon, struct kstatfs *FSData) 4885SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
4886 struct kstatfs *FSData)
4881{ 4887{
4882/* level 0x01 SMB_QUERY_FILE_SYSTEM_INFO */ 4888/* level 0x01 SMB_QUERY_FILE_SYSTEM_INFO */
4883 TRANSACTION2_QFSI_REQ *pSMB = NULL; 4889 TRANSACTION2_QFSI_REQ *pSMB = NULL;
@@ -4956,7 +4962,8 @@ oldQFSInfoRetry:
4956} 4962}
4957 4963
4958int 4964int
4959CIFSSMBQFSInfo(const int xid, struct cifs_tcon *tcon, struct kstatfs *FSData) 4965CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
4966 struct kstatfs *FSData)
4960{ 4967{
4961/* level 0x103 SMB_QUERY_FILE_SYSTEM_INFO */ 4968/* level 0x103 SMB_QUERY_FILE_SYSTEM_INFO */
4962 TRANSACTION2_QFSI_REQ *pSMB = NULL; 4969 TRANSACTION2_QFSI_REQ *pSMB = NULL;
@@ -5035,7 +5042,7 @@ QFSInfoRetry:
5035} 5042}
5036 5043
5037int 5044int
5038CIFSSMBQFSAttributeInfo(const int xid, struct cifs_tcon *tcon) 5045CIFSSMBQFSAttributeInfo(const unsigned int xid, struct cifs_tcon *tcon)
5039{ 5046{
5040/* level 0x105 SMB_QUERY_FILE_SYSTEM_INFO */ 5047/* level 0x105 SMB_QUERY_FILE_SYSTEM_INFO */
5041 TRANSACTION2_QFSI_REQ *pSMB = NULL; 5048 TRANSACTION2_QFSI_REQ *pSMB = NULL;
@@ -5105,7 +5112,7 @@ QFSAttributeRetry:
5105} 5112}
5106 5113
5107int 5114int
5108CIFSSMBQFSDeviceInfo(const int xid, struct cifs_tcon *tcon) 5115CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon)
5109{ 5116{
5110/* level 0x104 SMB_QUERY_FILE_SYSTEM_INFO */ 5117/* level 0x104 SMB_QUERY_FILE_SYSTEM_INFO */
5111 TRANSACTION2_QFSI_REQ *pSMB = NULL; 5118 TRANSACTION2_QFSI_REQ *pSMB = NULL;
@@ -5176,7 +5183,7 @@ QFSDeviceRetry:
5176} 5183}
5177 5184
5178int 5185int
5179CIFSSMBQFSUnixInfo(const int xid, struct cifs_tcon *tcon) 5186CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon)
5180{ 5187{
5181/* level 0x200 SMB_QUERY_CIFS_UNIX_INFO */ 5188/* level 0x200 SMB_QUERY_CIFS_UNIX_INFO */
5182 TRANSACTION2_QFSI_REQ *pSMB = NULL; 5189 TRANSACTION2_QFSI_REQ *pSMB = NULL;
@@ -5246,7 +5253,7 @@ QFSUnixRetry:
5246} 5253}
5247 5254
5248int 5255int
5249CIFSSMBSetFSUnixInfo(const int xid, struct cifs_tcon *tcon, __u64 cap) 5256CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon, __u64 cap)
5250{ 5257{
5251/* level 0x200 SMB_SET_CIFS_UNIX_INFO */ 5258/* level 0x200 SMB_SET_CIFS_UNIX_INFO */
5252 TRANSACTION2_SETFSI_REQ *pSMB = NULL; 5259 TRANSACTION2_SETFSI_REQ *pSMB = NULL;
@@ -5320,7 +5327,7 @@ SETFSUnixRetry:
5320 5327
5321 5328
5322int 5329int
5323CIFSSMBQFSPosixInfo(const int xid, struct cifs_tcon *tcon, 5330CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon,
5324 struct kstatfs *FSData) 5331 struct kstatfs *FSData)
5325{ 5332{
5326/* level 0x201 SMB_QUERY_CIFS_POSIX_INFO */ 5333/* level 0x201 SMB_QUERY_CIFS_POSIX_INFO */
@@ -5413,8 +5420,8 @@ QFSPosixRetry:
5413 in Samba which this routine can run into */ 5420 in Samba which this routine can run into */
5414 5421
5415int 5422int
5416CIFSSMBSetEOF(const int xid, struct cifs_tcon *tcon, const char *fileName, 5423CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon,
5417 __u64 size, bool SetAllocation, 5424 const char *fileName, __u64 size, bool SetAllocation,
5418 const struct nls_table *nls_codepage, int remap) 5425 const struct nls_table *nls_codepage, int remap)
5419{ 5426{
5420 struct smb_com_transaction2_spi_req *pSMB = NULL; 5427 struct smb_com_transaction2_spi_req *pSMB = NULL;
@@ -5502,7 +5509,7 @@ SetEOFRetry:
5502} 5509}
5503 5510
5504int 5511int
5505CIFSSMBSetFileSize(const int xid, struct cifs_tcon *tcon, __u64 size, 5512CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon, __u64 size,
5506 __u16 fid, __u32 pid_of_opener, bool SetAllocation) 5513 __u16 fid, __u32 pid_of_opener, bool SetAllocation)
5507{ 5514{
5508 struct smb_com_transaction2_sfi_req *pSMB = NULL; 5515 struct smb_com_transaction2_sfi_req *pSMB = NULL;
@@ -5584,7 +5591,7 @@ CIFSSMBSetFileSize(const int xid, struct cifs_tcon *tcon, __u64 size,
5584 time and resort to the original setpathinfo level which takes the ancient 5591 time and resort to the original setpathinfo level which takes the ancient
5585 DOS time format with 2 second granularity */ 5592 DOS time format with 2 second granularity */
5586int 5593int
5587CIFSSMBSetFileInfo(const int xid, struct cifs_tcon *tcon, 5594CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
5588 const FILE_BASIC_INFO *data, __u16 fid, __u32 pid_of_opener) 5595 const FILE_BASIC_INFO *data, __u16 fid, __u32 pid_of_opener)
5589{ 5596{
5590 struct smb_com_transaction2_sfi_req *pSMB = NULL; 5597 struct smb_com_transaction2_sfi_req *pSMB = NULL;
@@ -5647,7 +5654,7 @@ CIFSSMBSetFileInfo(const int xid, struct cifs_tcon *tcon,
5647} 5654}
5648 5655
5649int 5656int
5650CIFSSMBSetFileDisposition(const int xid, struct cifs_tcon *tcon, 5657CIFSSMBSetFileDisposition(const unsigned int xid, struct cifs_tcon *tcon,
5651 bool delete_file, __u16 fid, __u32 pid_of_opener) 5658 bool delete_file, __u16 fid, __u32 pid_of_opener)
5652{ 5659{
5653 struct smb_com_transaction2_sfi_req *pSMB = NULL; 5660 struct smb_com_transaction2_sfi_req *pSMB = NULL;
@@ -5703,7 +5710,7 @@ CIFSSMBSetFileDisposition(const int xid, struct cifs_tcon *tcon,
5703} 5710}
5704 5711
5705int 5712int
5706CIFSSMBSetPathInfo(const int xid, struct cifs_tcon *tcon, 5713CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
5707 const char *fileName, const FILE_BASIC_INFO *data, 5714 const char *fileName, const FILE_BASIC_INFO *data,
5708 const struct nls_table *nls_codepage, int remap) 5715 const struct nls_table *nls_codepage, int remap)
5709{ 5716{
@@ -5787,7 +5794,7 @@ SetTimesRetry:
5787 handling it anyway and NT4 was what we thought it would be needed for 5794 handling it anyway and NT4 was what we thought it would be needed for
5788 Do not delete it until we prove whether needed for Win9x though */ 5795 Do not delete it until we prove whether needed for Win9x though */
5789int 5796int
5790CIFSSMBSetAttrLegacy(int xid, struct cifs_tcon *tcon, char *fileName, 5797CIFSSMBSetAttrLegacy(unsigned int xid, struct cifs_tcon *tcon, char *fileName,
5791 __u16 dos_attrs, const struct nls_table *nls_codepage) 5798 __u16 dos_attrs, const struct nls_table *nls_codepage)
5792{ 5799{
5793 SETATTR_REQ *pSMB = NULL; 5800 SETATTR_REQ *pSMB = NULL;
@@ -5875,7 +5882,7 @@ cifs_fill_unix_set_info(FILE_UNIX_BASIC_INFO *data_offset,
5875} 5882}
5876 5883
5877int 5884int
5878CIFSSMBUnixSetFileInfo(const int xid, struct cifs_tcon *tcon, 5885CIFSSMBUnixSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
5879 const struct cifs_unix_set_info_args *args, 5886 const struct cifs_unix_set_info_args *args,
5880 u16 fid, u32 pid_of_opener) 5887 u16 fid, u32 pid_of_opener)
5881{ 5888{
@@ -5939,7 +5946,8 @@ CIFSSMBUnixSetFileInfo(const int xid, struct cifs_tcon *tcon,
5939} 5946}
5940 5947
5941int 5948int
5942CIFSSMBUnixSetPathInfo(const int xid, struct cifs_tcon *tcon, char *fileName, 5949CIFSSMBUnixSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
5950 char *fileName,
5943 const struct cifs_unix_set_info_args *args, 5951 const struct cifs_unix_set_info_args *args,
5944 const struct nls_table *nls_codepage, int remap) 5952 const struct nls_table *nls_codepage, int remap)
5945{ 5953{
@@ -6026,7 +6034,7 @@ setPermsRetry:
6026 * the data isn't copied to it, but the length is returned. 6034 * the data isn't copied to it, but the length is returned.
6027 */ 6035 */
6028ssize_t 6036ssize_t
6029CIFSSMBQAllEAs(const int xid, struct cifs_tcon *tcon, 6037CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon,
6030 const unsigned char *searchName, const unsigned char *ea_name, 6038 const unsigned char *searchName, const unsigned char *ea_name,
6031 char *EAData, size_t buf_size, 6039 char *EAData, size_t buf_size,
6032 const struct nls_table *nls_codepage, int remap) 6040 const struct nls_table *nls_codepage, int remap)
@@ -6209,8 +6217,8 @@ QAllEAsOut:
6209} 6217}
6210 6218
6211int 6219int
6212CIFSSMBSetEA(const int xid, struct cifs_tcon *tcon, const char *fileName, 6220CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon,
6213 const char *ea_name, const void *ea_value, 6221 const char *fileName, const char *ea_name, const void *ea_value,
6214 const __u16 ea_value_len, const struct nls_table *nls_codepage, 6222 const __u16 ea_value_len, const struct nls_table *nls_codepage,
6215 int remap) 6223 int remap)
6216{ 6224{
@@ -6336,7 +6344,7 @@ SetEARetry:
6336 * incompatible for network fs clients, we could instead simply 6344 * incompatible for network fs clients, we could instead simply
6337 * expose this config flag by adding a future cifs (and smb2) notify ioctl. 6345 * expose this config flag by adding a future cifs (and smb2) notify ioctl.
6338 */ 6346 */
6339int CIFSSMBNotify(const int xid, struct cifs_tcon *tcon, 6347int CIFSSMBNotify(const unsigned int xid, struct cifs_tcon *tcon,
6340 const int notify_subdirs, const __u16 netfid, 6348 const int notify_subdirs, const __u16 netfid,
6341 __u32 filter, struct file *pfile, int multishot, 6349 __u32 filter, struct file *pfile, int multishot,
6342 const struct nls_table *nls_codepage) 6350 const struct nls_table *nls_codepage)