diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2008-04-28 05:16:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:47 -0400 |
commit | 606e423e43bac0c2f7b85b682eb1ddd2a634586e (patch) | |
tree | 86e7bc56e7e70cf1403aec7fd58d854490b1478f /include/linux/msdos_fs.h | |
parent | 1ae43f826b6cb951fc5b0f9c92372a8d5b63c7f9 (diff) |
fat: Update free_clusters even if it is untrusted
Currently, free_clusters is not updated until it is trusted, because
Windows doesn't update it correctly.
But if user is using FAT driver of Linux, it updates free_clusters
correctly. Instead, this updates it even if it's untrusted, so if
free_clustes is correct, now keep correct value.
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/msdos_fs.h')
-rw-r--r-- | include/linux/msdos_fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/msdos_fs.h b/include/linux/msdos_fs.h index 81fb9bc53220..0bca157ddca5 100644 --- a/include/linux/msdos_fs.h +++ b/include/linux/msdos_fs.h | |||
@@ -233,6 +233,7 @@ struct msdos_sb_info { | |||
233 | struct mutex fat_lock; | 233 | struct mutex fat_lock; |
234 | unsigned int prev_free; /* previously allocated cluster number */ | 234 | unsigned int prev_free; /* previously allocated cluster number */ |
235 | unsigned int free_clusters; /* -1 if undefined */ | 235 | unsigned int free_clusters; /* -1 if undefined */ |
236 | unsigned int free_clus_valid; /* is free_clusters valid? */ | ||
236 | struct fat_mount_options options; | 237 | struct fat_mount_options options; |
237 | struct nls_table *nls_disk; /* Codepage used on disk */ | 238 | struct nls_table *nls_disk; /* Codepage used on disk */ |
238 | struct nls_table *nls_io; /* Charset used for input and display */ | 239 | struct nls_table *nls_io; /* Charset used for input and display */ |