patch-2.3.45 linux/fs/fat/cache.c

Next file: linux/fs/hpfs/namei.c
Previous file: linux/fs/attr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.44/linux/fs/fat/cache.c linux/fs/fat/cache.c
@@ -283,7 +283,7 @@
 			return 0;
 		return sector+sb->dir_start;
 	}
-	if (sector >= MSDOS_I(inode)->mmu_private>>9)
+	if (sector >= (MSDOS_I(inode)->mmu_private+511)>>9)
 		return 0;
 	cluster = sector/sb->cluster_size;
 	offset = sector % sb->cluster_size;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)