diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-03-16 03:56:57 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-03-16 04:52:02 -0400 |
commit | fb1cd01a33ecb8a49d590c034ba146dff80c5597 (patch) | |
tree | d963edf8512c6979fd7c8a34b6550a81e9828128 /fs/ubifs/ubifs.h | |
parent | c9927c3ee2d3d14893efd793a2a9ea772ddb4289 (diff) |
UBIFS: introduce a helpful variable
This patch introduces a helpful @c->idx_leb_size variable.
The patch also fixes some spelling issues and makes comments
use "LEB" instead of "eraseblock", which is more correct.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/ubifs.h')
-rw-r--r-- | fs/ubifs/ubifs.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index 2da1193a381f..a53b9a6df2be 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h | |||
@@ -1015,6 +1015,8 @@ struct ubifs_debug_info; | |||
1015 | * @min_io_shift: number of bits in @min_io_size minus one | 1015 | * @min_io_shift: number of bits in @min_io_size minus one |
1016 | * @leb_size: logical eraseblock size in bytes | 1016 | * @leb_size: logical eraseblock size in bytes |
1017 | * @half_leb_size: half LEB size | 1017 | * @half_leb_size: half LEB size |
1018 | * @idx_leb_size: how many bytes of an LEB are effectively available when it is | ||
1019 | * used to store indexing nodes (@leb_size - @max_idx_node_sz) | ||
1018 | * @leb_cnt: count of logical eraseblocks | 1020 | * @leb_cnt: count of logical eraseblocks |
1019 | * @max_leb_cnt: maximum count of logical eraseblocks | 1021 | * @max_leb_cnt: maximum count of logical eraseblocks |
1020 | * @old_leb_cnt: count of logical eraseblocks before re-size | 1022 | * @old_leb_cnt: count of logical eraseblocks before re-size |
@@ -1132,8 +1134,8 @@ struct ubifs_debug_info; | |||
1132 | * previous commit start | 1134 | * previous commit start |
1133 | * @uncat_list: list of un-categorized LEBs | 1135 | * @uncat_list: list of un-categorized LEBs |
1134 | * @empty_list: list of empty LEBs | 1136 | * @empty_list: list of empty LEBs |
1135 | * @freeable_list: list of freeable non-index LEBs (free + dirty == leb_size) | 1137 | * @freeable_list: list of freeable non-index LEBs (free + dirty == @leb_size) |
1136 | * @frdi_idx_list: list of freeable index LEBs (free + dirty == leb_size) | 1138 | * @frdi_idx_list: list of freeable index LEBs (free + dirty == @leb_size) |
1137 | * @freeable_cnt: number of freeable LEBs in @freeable_list | 1139 | * @freeable_cnt: number of freeable LEBs in @freeable_list |
1138 | * | 1140 | * |
1139 | * @ltab_lnum: LEB number of LPT's own lprops table | 1141 | * @ltab_lnum: LEB number of LPT's own lprops table |
@@ -1253,6 +1255,7 @@ struct ubifs_info { | |||
1253 | int min_io_shift; | 1255 | int min_io_shift; |
1254 | int leb_size; | 1256 | int leb_size; |
1255 | int half_leb_size; | 1257 | int half_leb_size; |
1258 | int idx_leb_size; | ||
1256 | int leb_cnt; | 1259 | int leb_cnt; |
1257 | int max_leb_cnt; | 1260 | int max_leb_cnt; |
1258 | int old_leb_cnt; | 1261 | int old_leb_cnt; |