patch-2.1.17 linux/fs/fat/misc.c

Next file: linux/fs/fcntl.c
Previous file: linux/fs/fat/cache.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.16/linux/fs/fat/misc.c linux/fs/fat/misc.c
@@ -140,7 +140,7 @@
 		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);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov