aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-12-10 18:41:15 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-10 20:41:02 -0500
commitbc09d141ebb26c0c1ab713c8597ca833be9afee4 (patch)
treefd5cec60e390bf4bddeef07a4a96b91475cad147 /fs/cifs/cifssmb.c
parent6b101e2a3ce4d2a0312087598bd1ab4a1db2ac40 (diff)
fs/cifs: remove obsolete __constant
Replace all __constant_foo to foo() except in smb2status.h (1700 lines to update). Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Steve French <sfrench@samba.org> Cc: Jeff Layton <jlayton@poochiereds.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 61d00a6e398f..fa13d5e79f64 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -2477,14 +2477,14 @@ CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon,
2477 } 2477 }
2478 parm_data = (struct cifs_posix_lock *) 2478 parm_data = (struct cifs_posix_lock *)
2479 ((char *)&pSMBr->hdr.Protocol + data_offset); 2479 ((char *)&pSMBr->hdr.Protocol + data_offset);
2480 if (parm_data->lock_type == __constant_cpu_to_le16(CIFS_UNLCK)) 2480 if (parm_data->lock_type == cpu_to_le16(CIFS_UNLCK))
2481 pLockData->fl_type = F_UNLCK; 2481 pLockData->fl_type = F_UNLCK;
2482 else { 2482 else {
2483 if (parm_data->lock_type == 2483 if (parm_data->lock_type ==
2484 __constant_cpu_to_le16(CIFS_RDLCK)) 2484 cpu_to_le16(CIFS_RDLCK))
2485 pLockData->fl_type = F_RDLCK; 2485 pLockData->fl_type = F_RDLCK;
2486 else if (parm_data->lock_type == 2486 else if (parm_data->lock_type ==
2487 __constant_cpu_to_le16(CIFS_WRLCK)) 2487 cpu_to_le16(CIFS_WRLCK))
2488 pLockData->fl_type = F_WRLCK; 2488 pLockData->fl_type = F_WRLCK;
2489 2489
2490 pLockData->fl_start = le64_to_cpu(parm_data->start); 2490 pLockData->fl_start = le64_to_cpu(parm_data->start);
@@ -3276,25 +3276,25 @@ CIFSSMB_set_compression(const unsigned int xid, struct cifs_tcon *tcon,
3276 pSMB->compression_state = cpu_to_le16(COMPRESSION_FORMAT_DEFAULT); 3276 pSMB->compression_state = cpu_to_le16(COMPRESSION_FORMAT_DEFAULT);
3277 3277
3278 pSMB->TotalParameterCount = 0; 3278 pSMB->TotalParameterCount = 0;
3279 pSMB->TotalDataCount = __constant_cpu_to_le32(2); 3279 pSMB->TotalDataCount = cpu_to_le32(2);
3280 pSMB->MaxParameterCount = 0; 3280 pSMB->MaxParameterCount = 0;
3281 pSMB->MaxDataCount = 0; 3281 pSMB->MaxDataCount = 0;
3282 pSMB->MaxSetupCount = 4; 3282 pSMB->MaxSetupCount = 4;
3283 pSMB->Reserved = 0; 3283 pSMB->Reserved = 0;
3284 pSMB->ParameterOffset = 0; 3284 pSMB->ParameterOffset = 0;
3285 pSMB->DataCount = __constant_cpu_to_le32(2); 3285 pSMB->DataCount = cpu_to_le32(2);
3286 pSMB->DataOffset = 3286 pSMB->DataOffset =
3287 cpu_to_le32(offsetof(struct smb_com_transaction_compr_ioctl_req, 3287 cpu_to_le32(offsetof(struct smb_com_transaction_compr_ioctl_req,
3288 compression_state) - 4); /* 84 */ 3288 compression_state) - 4); /* 84 */
3289 pSMB->SetupCount = 4; 3289 pSMB->SetupCount = 4;
3290 pSMB->SubCommand = __constant_cpu_to_le16(NT_TRANSACT_IOCTL); 3290 pSMB->SubCommand = cpu_to_le16(NT_TRANSACT_IOCTL);
3291 pSMB->ParameterCount = 0; 3291 pSMB->ParameterCount = 0;
3292 pSMB->FunctionCode = __constant_cpu_to_le32(FSCTL_SET_COMPRESSION); 3292 pSMB->FunctionCode = cpu_to_le32(FSCTL_SET_COMPRESSION);
3293 pSMB->IsFsctl = 1; /* FSCTL */ 3293 pSMB->IsFsctl = 1; /* FSCTL */
3294 pSMB->IsRootFlag = 0; 3294 pSMB->IsRootFlag = 0;
3295 pSMB->Fid = fid; /* file handle always le */ 3295 pSMB->Fid = fid; /* file handle always le */
3296 /* 3 byte pad, followed by 2 byte compress state */ 3296 /* 3 byte pad, followed by 2 byte compress state */
3297 pSMB->ByteCount = __constant_cpu_to_le16(5); 3297 pSMB->ByteCount = cpu_to_le16(5);
3298 inc_rfc1001_len(pSMB, 5); 3298 inc_rfc1001_len(pSMB, 5);
3299 3299
3300 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, 3300 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
@@ -3430,10 +3430,10 @@ static __u16 ACL_to_cifs_posix(char *parm_data, const char *pACL,
3430 cifs_acl->version = cpu_to_le16(1); 3430 cifs_acl->version = cpu_to_le16(1);
3431 if (acl_type == ACL_TYPE_ACCESS) { 3431 if (acl_type == ACL_TYPE_ACCESS) {
3432 cifs_acl->access_entry_count = cpu_to_le16(count); 3432 cifs_acl->access_entry_count = cpu_to_le16(count);
3433 cifs_acl->default_entry_count = __constant_cpu_to_le16(0xFFFF); 3433 cifs_acl->default_entry_count = cpu_to_le16(0xFFFF);
3434 } else if (acl_type == ACL_TYPE_DEFAULT) { 3434 } else if (acl_type == ACL_TYPE_DEFAULT) {
3435 cifs_acl->default_entry_count = cpu_to_le16(count); 3435 cifs_acl->default_entry_count = cpu_to_le16(count);
3436 cifs_acl->access_entry_count = __constant_cpu_to_le16(0xFFFF); 3436 cifs_acl->access_entry_count = cpu_to_le16(0xFFFF);
3437 } else { 3437 } else {
3438 cifs_dbg(FYI, "unknown ACL type %d\n", acl_type); 3438 cifs_dbg(FYI, "unknown ACL type %d\n", acl_type);
3439 return 0; 3439 return 0;