提交 a65a0eb6 编写于 作者: R Richard Weinberger 提交者: Artem Bityutskiy

UBI: remove data type hint from ubi-user.h

This finally removes the data type hint from the UBI ABI.
>From now on the "dtype" field will be ignored and must not used
anymore.
Signed-off-by: NRichard Weinberger <richard@nod.at>
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
上级 b36a261e
...@@ -195,23 +195,6 @@ ...@@ -195,23 +195,6 @@
/* Maximum amount of UBI volumes that can be re-named at one go */ /* Maximum amount of UBI volumes that can be re-named at one go */
#define UBI_MAX_RNVOL 32 #define UBI_MAX_RNVOL 32
/*
* UBI data type hint constants.
*
* UBI_LONGTERM: long-term data
* UBI_SHORTTERM: short-term data
* UBI_UNKNOWN: data persistence is unknown
*
* These constants are used when data is written to UBI volumes in order to
* help the UBI wear-leveling unit to find more appropriate physical
* eraseblocks.
*/
enum {
UBI_LONGTERM = 1,
UBI_SHORTTERM = 2,
UBI_UNKNOWN = 3,
};
/* /*
* UBI volume type constants. * UBI volume type constants.
* *
...@@ -375,25 +358,23 @@ struct ubi_rnvol_req { ...@@ -375,25 +358,23 @@ struct ubi_rnvol_req {
* requests. * requests.
* @lnum: logical eraseblock number to change * @lnum: logical eraseblock number to change
* @bytes: how many bytes will be written to the logical eraseblock * @bytes: how many bytes will be written to the logical eraseblock
* @dtype: data type (%UBI_LONGTERM, %UBI_SHORTTERM, %UBI_UNKNOWN)
* @padding: reserved for future, not used, has to be zeroed * @padding: reserved for future, not used, has to be zeroed
*/ */
struct ubi_leb_change_req { struct ubi_leb_change_req {
__s32 lnum; __s32 lnum;
__s32 bytes; __s32 bytes;
__s8 dtype; __s8 dtype; /* obsolete, do not use! */
__s8 padding[7]; __s8 padding[7];
} __packed; } __packed;
/** /**
* struct ubi_map_req - a data structure used in map LEB requests. * struct ubi_map_req - a data structure used in map LEB requests.
* @lnum: logical eraseblock number to unmap * @lnum: logical eraseblock number to unmap
* @dtype: data type (%UBI_LONGTERM, %UBI_SHORTTERM, %UBI_UNKNOWN)
* @padding: reserved for future, not used, has to be zeroed * @padding: reserved for future, not used, has to be zeroed
*/ */
struct ubi_map_req { struct ubi_map_req {
__s32 lnum; __s32 lnum;
__s8 dtype; __s8 dtype; /* obsolete, do not use! */
__s8 padding[3]; __s8 padding[3];
} __packed; } __packed;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册