diff options
Diffstat (limited to 'fs/cifs/readdir.c')
-rw-r--r-- | fs/cifs/readdir.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c index 9aeb58a7d369..71e86c38e632 100644 --- a/fs/cifs/readdir.c +++ b/fs/cifs/readdir.c | |||
@@ -135,12 +135,19 @@ static void fill_in_inode(struct inode *tmp_inode, int new_buf_type, | |||
135 | tmp_inode->i_ctime = | 135 | tmp_inode->i_ctime = |
136 | cifs_NTtimeToUnix(le64_to_cpu(pfindData->ChangeTime)); | 136 | cifs_NTtimeToUnix(le64_to_cpu(pfindData->ChangeTime)); |
137 | } else { /* legacy, OS2 and DOS style */ | 137 | } else { /* legacy, OS2 and DOS style */ |
138 | /* struct timespec ts;*/ | ||
138 | FIND_FILE_STANDARD_INFO * pfindData = | 139 | FIND_FILE_STANDARD_INFO * pfindData = |
139 | (FIND_FILE_STANDARD_INFO *)buf; | 140 | (FIND_FILE_STANDARD_INFO *)buf; |
140 | 141 | ||
142 | /* ts = cnvrtDosUnixTm( | ||
143 | le16_to_cpu(pfindData->LastWriteDate), | ||
144 | le16_to_cpu(pfindData->LastWriteTime));*/ | ||
141 | attr = le16_to_cpu(pfindData->Attributes); | 145 | attr = le16_to_cpu(pfindData->Attributes); |
142 | allocation_size = le32_to_cpu(pfindData->AllocationSize); | 146 | allocation_size = le32_to_cpu(pfindData->AllocationSize); |
143 | end_of_file = le32_to_cpu(pfindData->DataSize); | 147 | end_of_file = le32_to_cpu(pfindData->DataSize); |
148 | /* do not need to use current_fs_time helper function since | ||
149 | time not stored for this case so atime can not "go backwards" | ||
150 | by pulling newer older from disk when inode refrenshed */ | ||
144 | tmp_inode->i_atime = CURRENT_TIME; | 151 | tmp_inode->i_atime = CURRENT_TIME; |
145 | /* tmp_inode->i_mtime = BB FIXME - add dos time handling | 152 | /* tmp_inode->i_mtime = BB FIXME - add dos time handling |
146 | tmp_inode->i_ctime = 0; BB FIXME */ | 153 | tmp_inode->i_ctime = 0; BB FIXME */ |