diff options
author | Maxim Levitsky <maximlevitsky@gmail.com> | 2010-10-15 11:20:47 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-10-24 20:33:08 -0400 |
commit | 334e5f56f176e19f7a85c23152bd7901d2991380 (patch) | |
tree | daac70cb67c607e5d474e28f434d10b6eb15b0a8 /drivers/mtd/sm_ftl.h | |
parent | 9bf70717a589b4b7f866d733b48554a04ea4f6e8 (diff) |
mtd: sm_ftl: cosmetic, use bool when possible
I didn't know that kernel allows use of that typedef.
Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/sm_ftl.h')
-rw-r--r-- | drivers/mtd/sm_ftl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/sm_ftl.h b/drivers/mtd/sm_ftl.h index e30e48e7f63d..43bb7300785b 100644 --- a/drivers/mtd/sm_ftl.h +++ b/drivers/mtd/sm_ftl.h | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | 21 | ||
22 | struct ftl_zone { | 22 | struct ftl_zone { |
23 | int initialized; | 23 | bool initialized; |
24 | int16_t *lba_to_phys_table; /* LBA to physical table */ | 24 | int16_t *lba_to_phys_table; /* LBA to physical table */ |
25 | struct kfifo free_sectors; /* queue of free sectors */ | 25 | struct kfifo free_sectors; /* queue of free sectors */ |
26 | }; | 26 | }; |
@@ -37,8 +37,8 @@ struct sm_ftl { | |||
37 | int zone_count; /* number of zones */ | 37 | int zone_count; /* number of zones */ |
38 | int max_lba; /* maximum lba in a zone */ | 38 | int max_lba; /* maximum lba in a zone */ |
39 | int smallpagenand; /* 256 bytes/page nand */ | 39 | int smallpagenand; /* 256 bytes/page nand */ |
40 | int readonly; /* is FS readonly */ | 40 | bool readonly; /* is FS readonly */ |
41 | int unstable; | 41 | bool unstable; |
42 | int cis_block; /* CIS block location */ | 42 | int cis_block; /* CIS block location */ |
43 | int cis_boffset; /* CIS offset in the block */ | 43 | int cis_boffset; /* CIS offset in the block */ |
44 | int cis_page_offset; /* CIS offset in the page */ | 44 | int cis_page_offset; /* CIS offset in the page */ |
@@ -49,7 +49,7 @@ struct sm_ftl { | |||
49 | int cache_zone; /* zone of cached block */ | 49 | int cache_zone; /* zone of cached block */ |
50 | unsigned char *cache_data; /* cached block data */ | 50 | unsigned char *cache_data; /* cached block data */ |
51 | long unsigned int cache_data_invalid_bitmap; | 51 | long unsigned int cache_data_invalid_bitmap; |
52 | int cache_clean; | 52 | bool cache_clean; |
53 | struct work_struct flush_work; | 53 | struct work_struct flush_work; |
54 | struct timer_list timer; | 54 | struct timer_list timer; |
55 | 55 | ||