summaryrefslogtreecommitdiffstats
path: root/fs/fat/misc.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
committer <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
commit19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch)
tree40b1cb534496a7f1ca0f5c314a523c69f1fee464 /fs/fat/misc.c
parent7206675c40394c78a90e74812bbdbf8cf3cca1be (diff)
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'fs/fat/misc.c')
-rw-r--r--fs/fat/misc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/fat/misc.c b/fs/fat/misc.c
index 120c522e7..d1e9bc6ca 100644
--- a/fs/fat/misc.c
+++ b/fs/fat/misc.c
@@ -77,7 +77,7 @@ int is_binary(char conversion,char *extension)
/* (rename might deadlock before detecting cross-FS moves.) */
static struct wait_queue *creation_wait = NULL;
-static creation_lock = 0;
+static int creation_lock = 0;
void fat_lock_creation(void)
@@ -140,7 +140,7 @@ printk("free cluster: %d\n",nr);
return -ENOSPC;
}
fat_access(sb,nr,MSDOS_SB(sb)->fat_bits == 12 ?
- 0xff8 : 0xfff8);
+ EOF_FAT12 : EOF_FAT16);
if (MSDOS_SB(sb)->free_clusters != -1)
MSDOS_SB(sb)->free_clusters--;
unlock_fat(sb);
@@ -258,6 +258,9 @@ void fat_date_unix2dos(int unix_date,unsigned short *time,
{
int day,year,nl_day,month;
+ if (sys_tz.tz_dsttime) {
+ unix_date += 3600;
+ }
unix_date -= sys_tz.tz_minuteswest*60;
*time = (unix_date % 60)/2+(((unix_date/60) % 60) << 5)+
(((unix_date/3600) % 24) << 11);