aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.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/inode.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/inode.c')
-rw-r--r--fs/cifs/inode.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 9d94afe9b60e..d952914dfc4c 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -767,9 +767,10 @@ psx_del_no_retry:
767 cifs_sb->mnt_cifs_flags & 767 cifs_sb->mnt_cifs_flags &
768 CIFS_MOUNT_MAP_SPECIAL_CHR); 768 CIFS_MOUNT_MAP_SPECIAL_CHR);
769 if (rc == 0) { 769 if (rc == 0) {
770 rc = CIFSSMBSetFileTimes(xid, pTcon, 770 rc = CIFSSMBSetFileInfo(xid, pTcon,
771 pinfo_buf, 771 pinfo_buf,
772 netfid); 772 netfid,
773 current->tgid);
773 CIFSSMBClose(xid, pTcon, netfid); 774 CIFSSMBClose(xid, pTcon, netfid);
774 } 775 }
775 } 776 }
@@ -1702,8 +1703,8 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
1702 cifs_sb->mnt_cifs_flags & 1703 cifs_sb->mnt_cifs_flags &
1703 CIFS_MOUNT_MAP_SPECIAL_CHR); 1704 CIFS_MOUNT_MAP_SPECIAL_CHR);
1704 if (rc == 0) { 1705 if (rc == 0) {
1705 rc = CIFSSMBSetFileTimes(xid, pTcon, &time_buf, 1706 rc = CIFSSMBSetFileInfo(xid, pTcon, &time_buf,
1706 netfid); 1707 netfid, current->tgid);
1707 CIFSSMBClose(xid, pTcon, netfid); 1708 CIFSSMBClose(xid, pTcon, netfid);
1708 } else { 1709 } else {
1709 /* BB For even older servers we could convert time_buf 1710 /* BB For even older servers we could convert time_buf