diff options
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 7 |
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 = |