aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2008-08-02 07:26:12 -0400
committerSteve French <sfrench@us.ibm.com>2008-08-06 00:24:50 -0400
commit2dd2dfa060650118661422d4e666ac804c388751 (patch)
tree6dd3fb4e1dbe9a6119f17bf0defb12660f2be9a5 /fs/cifs/cifssmb.c
parent6fc000e5190234c7e5b244d1e2095d50b630d63f (diff)
Rename CIFSSMBSetFileTimes to CIFSSMBSetFileInfo and add PID arg
The new name is more clear since this is also used to set file attributes. We'll need the pid_of_opener arg so that we can pass in filehandles of other pids and spare ourselves an open call. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index daf010a2ba80..6e8e8fc04c02 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -4816,8 +4816,8 @@ CIFSSMBSetFileSize(const int xid, struct cifsTconInfo *tcon, __u64 size,
4816 time and resort to the original setpathinfo level which takes the ancient 4816 time and resort to the original setpathinfo level which takes the ancient
4817 DOS time format with 2 second granularity */ 4817 DOS time format with 2 second granularity */
4818int 4818int
4819CIFSSMBSetFileTimes(const int xid, struct cifsTconInfo *tcon, 4819CIFSSMBSetFileInfo(const int xid, struct cifsTconInfo *tcon,
4820 const FILE_BASIC_INFO *data, __u16 fid) 4820 const FILE_BASIC_INFO *data, __u16 fid, __u32 pid_of_opener)
4821{ 4821{
4822 struct smb_com_transaction2_sfi_req *pSMB = NULL; 4822 struct smb_com_transaction2_sfi_req *pSMB = NULL;
4823 char *data_offset; 4823 char *data_offset;
@@ -4830,11 +4830,8 @@ CIFSSMBSetFileTimes(const int xid, struct cifsTconInfo *tcon,
4830 if (rc) 4830 if (rc)
4831 return rc; 4831 return rc;
4832 4832
4833 /* At this point there is no need to override the current pid 4833 pSMB->hdr.Pid = cpu_to_le16((__u16)pid_of_opener);
4834 with the pid of the opener, but that could change if we someday 4834 pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid_of_opener >> 16));
4835 use an existing handle (rather than opening one on the fly) */
4836 /* pSMB->hdr.Pid = cpu_to_le16((__u16)pid_of_opener);
4837 pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid_of_opener >> 16));*/
4838 4835
4839 params = 6; 4836 params = 6;
4840 pSMB->MaxSetupCount = 0; 4837 pSMB->MaxSetupCount = 0;