diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/inode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 27e97d43c759..db091c516c2a 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -752,6 +752,9 @@ cifs_set_file_info(struct inode *inode, struct iattr *attrs, int xid, | |||
752 | 752 | ||
753 | set_via_filehandle: | 753 | set_via_filehandle: |
754 | rc = CIFSSMBSetFileInfo(xid, pTcon, &info_buf, netfid, netpid); | 754 | rc = CIFSSMBSetFileInfo(xid, pTcon, &info_buf, netfid, netpid); |
755 | if (!rc) | ||
756 | cifsInode->cifsAttrs = dosattr; | ||
757 | |||
755 | if (open_file == NULL) | 758 | if (open_file == NULL) |
756 | CIFSSMBClose(xid, pTcon, netfid); | 759 | CIFSSMBClose(xid, pTcon, netfid); |
757 | else | 760 | else |
@@ -902,6 +905,7 @@ psx_del_no_retry: | |||
902 | if (rc == 0) | 905 | if (rc == 0) |
903 | drop_nlink(inode); | 906 | drop_nlink(inode); |
904 | } | 907 | } |
908 | cifsInode->cifsAttrs = dosattr; | ||
905 | } | 909 | } |
906 | out_reval: | 910 | out_reval: |
907 | if (inode) { | 911 | if (inode) { |