Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180423
b: refs/heads/master
c: ccd4bb1
h: refs/heads/master
i:
  180421: d0151d8
  180419: 942ffd2
  180415: f627738
v: v3
  • Loading branch information
Steve French committed Feb 8, 2010
1 parent 3c1c523 commit b47ac55
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 301a6a317797ca362951ea21da397c05236f0070
refs/heads/master: ccd4bb1beb3316de4611de24d223ad761b5a7e95
12 changes: 11 additions & 1 deletion trunk/fs/cifs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1762,8 +1762,18 @@ cifs_setattr_unix(struct dentry *direntry, struct iattr *attrs)
CIFS_MOUNT_MAP_SPECIAL_CHR);
}

if (!rc)
if (!rc) {
rc = inode_setattr(inode, attrs);

/* force revalidate when any of these times are set since some
of the fs types (eg ext3, fat) do not have fine enough
time granularity to match protocol, and we do not have a
a way (yet) to query the server fs's time granularity (and
whether it rounds times down).
*/
if (!rc && (attrs->ia_valid & (ATTR_MTIME | ATTR_CTIME)))
cifsInode->time = 0;
}
out:
kfree(args);
kfree(full_path);
Expand Down

0 comments on commit b47ac55

Please sign in to comment.