diff options
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 602326fa4a4f..e33093f7ef0d 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -1963,7 +1963,7 @@ CIFSSMBWrite2(const int xid, struct cifs_io_parms *io_parms, | |||
1963 | 1963 | ||
1964 | int | 1964 | int |
1965 | CIFSSMBLock(const int xid, struct cifs_tcon *tcon, | 1965 | CIFSSMBLock(const int xid, struct cifs_tcon *tcon, |
1966 | const __u16 smb_file_id, const __u64 len, | 1966 | const __u16 smb_file_id, const __u32 netpid, const __u64 len, |
1967 | const __u64 offset, const __u32 numUnlock, | 1967 | const __u64 offset, const __u32 numUnlock, |
1968 | const __u32 numLock, const __u8 lockType, | 1968 | const __u32 numLock, const __u8 lockType, |
1969 | const bool waitFlag, const __u8 oplock_level) | 1969 | const bool waitFlag, const __u8 oplock_level) |
@@ -1999,7 +1999,7 @@ CIFSSMBLock(const int xid, struct cifs_tcon *tcon, | |||
1999 | pSMB->Fid = smb_file_id; /* netfid stays le */ | 1999 | pSMB->Fid = smb_file_id; /* netfid stays le */ |
2000 | 2000 | ||
2001 | if ((numLock != 0) || (numUnlock != 0)) { | 2001 | if ((numLock != 0) || (numUnlock != 0)) { |
2002 | pSMB->Locks[0].Pid = cpu_to_le16(current->tgid); | 2002 | pSMB->Locks[0].Pid = cpu_to_le16(netpid); |
2003 | /* BB where to store pid high? */ | 2003 | /* BB where to store pid high? */ |
2004 | pSMB->Locks[0].LengthLow = cpu_to_le32((u32)len); | 2004 | pSMB->Locks[0].LengthLow = cpu_to_le32((u32)len); |
2005 | pSMB->Locks[0].LengthHigh = cpu_to_le32((u32)(len>>32)); | 2005 | pSMB->Locks[0].LengthHigh = cpu_to_le32((u32)(len>>32)); |