diff options
Diffstat (limited to 'fs/msdos/namei.c')
-rw-r--r-- | fs/msdos/namei.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/msdos/namei.c b/fs/msdos/namei.c index e4ad6c6b753e..e844b9809d27 100644 --- a/fs/msdos/namei.c +++ b/fs/msdos/namei.c | |||
@@ -237,6 +237,7 @@ static int msdos_add_entry(struct inode *dir, const unsigned char *name, | |||
237 | int is_dir, int is_hid, int cluster, | 237 | int is_dir, int is_hid, int cluster, |
238 | struct timespec *ts, struct fat_slot_info *sinfo) | 238 | struct timespec *ts, struct fat_slot_info *sinfo) |
239 | { | 239 | { |
240 | struct msdos_sb_info *sbi = MSDOS_SB(dir->i_sb); | ||
240 | struct msdos_dir_entry de; | 241 | struct msdos_dir_entry de; |
241 | __le16 time, date; | 242 | __le16 time, date; |
242 | int err; | 243 | int err; |
@@ -246,7 +247,7 @@ static int msdos_add_entry(struct inode *dir, const unsigned char *name, | |||
246 | if (is_hid) | 247 | if (is_hid) |
247 | de.attr |= ATTR_HIDDEN; | 248 | de.attr |= ATTR_HIDDEN; |
248 | de.lcase = 0; | 249 | de.lcase = 0; |
249 | fat_date_unix2dos(ts->tv_sec, &time, &date); | 250 | fat_date_unix2dos(ts->tv_sec, &time, &date, sbi->options.tz_utc); |
250 | de.cdate = de.adate = 0; | 251 | de.cdate = de.adate = 0; |
251 | de.ctime = 0; | 252 | de.ctime = 0; |
252 | de.ctime_cs = 0; | 253 | de.ctime_cs = 0; |