diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-21 13:02:17 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-21 13:02:17 -0800 |
commit | 9654640d0af8f2de40ff3807d3695109d3463f54 (patch) | |
tree | ab279cb78248152fe19d3d2a977f33f883abed40 /fs/cifs/inode.c | |
parent | b5bf28cde894b3bb3bd25c13a7647020562f9ea0 (diff) | |
parent | 004c46b9e588edf549a39c5db54e37ebd0b3b3ad (diff) | |
download | op-kernel-dev-9654640d0af8f2de40ff3807d3695109d3463f54.zip op-kernel-dev-9654640d0af8f2de40ff3807d3695109d3463f54.tar.gz |
Merge master.kernel.org:/pub/scm/linux/kernel/git/sfrench/cifs-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
[CIFS] One line missing from previous commit
[CIFS] mtime bounces from local to remote when cifs nocmtime i_flags overwritten
[CIFS] fix &&/& typo in cifs_setattr()
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 3f5bc83..37c6ce8 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -90,6 +90,9 @@ int cifs_get_inode_info_unix(struct inode **pinode, (*pinode)->i_ino = (unsigned long)findData.UniqueId; } /* note ino incremented to unique num in new_inode */ + if(sb->s_flags & MS_NOATIME) + (*pinode)->i_flags |= S_NOATIME | S_NOCMTIME; + insert_inode_hash(*pinode); } @@ -421,6 +424,8 @@ int cifs_get_inode_info(struct inode **pinode, } else /* do we need cast or hash to ino? */ (*pinode)->i_ino = inode_num; } /* else ino incremented to unique num in new_inode*/ + if(sb->s_flags & MS_NOATIME) + (*pinode)->i_flags |= S_NOATIME | S_NOCMTIME; insert_inode_hash(*pinode); } inode = *pinode; @@ -1359,7 +1364,7 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs) and this check ensures that we are not being called from sys_utimes in which case we ought to fail the call back to the user when the server rejects the call */ - if((rc) && (attrs->ia_valid && + if((rc) && (attrs->ia_valid & (ATTR_MODE | ATTR_GID | ATTR_UID | ATTR_SIZE))) rc = 0; } |