From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

This patch make sure it's <= sbi->clusters.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
---

Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/fs/fat/inode.c |    3 +++
 1 files changed, 3 insertions(+)

diff -puN fs/fat/inode.c~fat-check-free_clusters-value fs/fat/inode.c
--- 25/fs/fat/inode.c~fat-check-free_clusters-value	2004-09-25 22:06:04.121869024 -0700
+++ 25-akpm/fs/fat/inode.c	2004-09-25 22:06:04.126868264 -0700
@@ -997,6 +997,9 @@ int fat_fill_super(struct super_block *s
 	}
 
 	sbi->clusters = total_clusters;
+	/* check the free_clusters, it's not necessarily correct */
+	if (sbi->free_clusters != -1 && sbi->free_clusters > sbi->clusters)
+		sbi->free_clusters = -1;
 
 	brelse(bh);
 
_