diff options
| author | Hirofumi Ogawa <hirofumi@mail.parknet.co.jp> | 2005-03-09 17:00:15 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-03-09 17:00:15 -0800 |
| commit | 0dc806f7449486d1ff51aafc02cf7c8e463e634f (patch) | |
| tree | 0e0d38f329e073a1716db2264d20063b54555acb /include/linux/msdos_fs.h | |
| parent | 60eb24814c255e55da7e07eab3123b7cb5f0b03f (diff) | |
[PATCH] FAT: Use "unsigned int" for ->free_clusters and ->prev_free
This changes ->free_clusters and ->prev_free from "int" to "unsigned int".
These value should be never negative value (but it's using 0xffffffff(-1) as
undefined state).
With this changes, fatfs would handle the corruption of free_clusters
more proper.
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/msdos_fs.h')
| -rw-r--r-- | include/linux/msdos_fs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/msdos_fs.h b/include/linux/msdos_fs.h index 617191a2f615..aebccace4fda 100644 --- a/include/linux/msdos_fs.h +++ b/include/linux/msdos_fs.h @@ -225,8 +225,8 @@ struct msdos_sb_info { unsigned long root_cluster; /* first cluster of the root directory */ unsigned long fsinfo_sector; /* sector number of FAT32 fsinfo */ struct semaphore fat_lock; - int prev_free; /* previously allocated cluster number */ - int free_clusters; /* -1 if undefined */ + unsigned int prev_free; /* previously allocated cluster number */ + unsigned int free_clusters; /* -1 if undefined */ struct fat_mount_options options; struct nls_table *nls_disk; /* Codepage used on disk */ struct nls_table *nls_io; /* Charset used for input and display */ |
