aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-09-27 23:35:57 -0400
committerSteve French <sfrench@us.ibm.com>2006-09-27 23:35:57 -0400
commit1bd5bbcb6531776a8f73e2cc6287fc4dd542e1c7 (patch)
tree7c41514f13224d6292a1bb90636f44c3c027b2e8 /fs/cifs/inode.c
parent0889a9441d98af7951c5377647413d79c84c9efa (diff)
[CIFS] Legacy time handling for Win9x and OS/2 part 1
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r--fs/cifs/inode.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index b88147c1dc27..06dbce3a1815 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -432,8 +432,11 @@ int cifs_get_inode_info(struct inode **pinode,
432 (pTcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE) & 0xFFFFFE00;*/ 432 (pTcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE) & 0xFFFFFE00;*/
433 433
434 /* Linux can not store file creation time so ignore it */ 434 /* Linux can not store file creation time so ignore it */
435 inode->i_atime = 435 if(pfindData->LastAccessTime)
436 cifs_NTtimeToUnix(le64_to_cpu(pfindData->LastAccessTime)); 436 inode->i_atime = cifs_NTtimeToUnix
437 (le64_to_cpu(pfindData->LastAccessTime));
438 else /* do not need to use current_fs_time - time not stored */
439 inode->i_atime = CURRENT_TIME;
437 inode->i_mtime = 440 inode->i_mtime =
438 cifs_NTtimeToUnix(le64_to_cpu(pfindData->LastWriteTime)); 441 cifs_NTtimeToUnix(le64_to_cpu(pfindData->LastWriteTime));
439 inode->i_ctime = 442 inode->i_ctime =