diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-14 12:49:35 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 13:25:59 -0400 |
commit | 4415626732defb5a4567a0a757c7c5baae7ca846 (patch) | |
tree | 31b02e4a1882d243f5fbc8599dae8fac66d917fb /include/mtd | |
parent | a65a0eb6d198e058687a9214683bd1c418f20d39 (diff) |
UBI: amend commentaries WRT dtype
Richard removed the "dtype" hint, but few commentaries were left and this patch
removes them. I've also added a better description about the "dtype" field in
the ubi-user.h for people who may ever wonder what was that dtype thing about.
This patch also adds an important note that it is better to use value "3" for
the "dtype" field.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'include/mtd')
-rw-r--r-- | include/mtd/ubi-user.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mtd/ubi-user.h b/include/mtd/ubi-user.h index 370c750115ce..8787349fbafe 100644 --- a/include/mtd/ubi-user.h +++ b/include/mtd/ubi-user.h | |||
@@ -358,7 +358,17 @@ struct ubi_rnvol_req { | |||
358 | * requests. | 358 | * requests. |
359 | * @lnum: logical eraseblock number to change | 359 | * @lnum: logical eraseblock number to change |
360 | * @bytes: how many bytes will be written to the logical eraseblock | 360 | * @bytes: how many bytes will be written to the logical eraseblock |
361 | * @dtype: pass "3" for better compatibility with old kernels | ||
361 | * @padding: reserved for future, not used, has to be zeroed | 362 | * @padding: reserved for future, not used, has to be zeroed |
363 | * | ||
364 | * The @dtype field used to inform UBI about what kind of data will be written | ||
365 | * to the LEB: long term (value 1), short term (value 2), unknown (value 3). | ||
366 | * UBI tried to pick a PEB with lower erase counter for short term data and a | ||
367 | * PEB with higher erase counter for long term data. But this was not really | ||
368 | * used because users usually do not know this and could easily mislead UBI. We | ||
369 | * removed this feature in May 2012. UBI currently just ignores the @dtype | ||
370 | * field. But for better compatibility with older kernels it is recommended to | ||
371 | * set @dtype to 3 (unknown). | ||
362 | */ | 372 | */ |
363 | struct ubi_leb_change_req { | 373 | struct ubi_leb_change_req { |
364 | __s32 lnum; | 374 | __s32 lnum; |
@@ -369,6 +379,7 @@ struct ubi_leb_change_req { | |||
369 | 379 | ||
370 | /** | 380 | /** |
371 | * struct ubi_map_req - a data structure used in map LEB requests. | 381 | * struct ubi_map_req - a data structure used in map LEB requests. |
382 | * @dtype: pass "3" for better compatibility with old kernels | ||
372 | * @lnum: logical eraseblock number to unmap | 383 | * @lnum: logical eraseblock number to unmap |
373 | * @padding: reserved for future, not used, has to be zeroed | 384 | * @padding: reserved for future, not used, has to be zeroed |
374 | */ | 385 | */ |