Skip to content

Commit

Permalink
[CIFS] update DOS attributes in cifsInode if we successfully changed …
Browse files Browse the repository at this point in the history
…them

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Steve French committed Sep 24, 2008
1 parent 391e575 commit d388908
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/cifs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,9 @@ cifs_set_file_info(struct inode *inode, struct iattr *attrs, int xid,

set_via_filehandle:
rc = CIFSSMBSetFileInfo(xid, pTcon, &info_buf, netfid, netpid);
if (!rc)
cifsInode->cifsAttrs = dosattr;

if (open_file == NULL)
CIFSSMBClose(xid, pTcon, netfid);
else
Expand Down Expand Up @@ -902,6 +905,7 @@ int cifs_unlink(struct inode *dir, struct dentry *dentry)
if (rc == 0)
drop_nlink(inode);
}
cifsInode->cifsAttrs = dosattr;
}
out_reval:
if (inode) {
Expand Down

0 comments on commit d388908

Please sign in to comment.