From 88f1b1917a2999710300286190c87d5f84cf875b Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sun, 20 May 2012 21:14:22 +0300 Subject: [PATCH] --- yaml --- r: 305190 b: refs/heads/master c: 05a3cb7dcec5a15ed9b18a5317ba2075355c7547 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/mtd/ubi/ubi.h | 10 +++++----- trunk/include/linux/mtd/ubi.h | 3 +++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 0bbd7c11f840..672a8e7c6a38 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d36e59e69b8be536c55d6118630f0221cee5ccee +refs/heads/master: 05a3cb7dcec5a15ed9b18a5317ba2075355c7547 diff --git a/trunk/drivers/mtd/ubi/ubi.h b/trunk/drivers/mtd/ubi/ubi.h index 5e1182ca289b..38cfb0f2adf2 100644 --- a/trunk/drivers/mtd/ubi/ubi.h +++ b/trunk/drivers/mtd/ubi/ubi.h @@ -65,7 +65,10 @@ /* Background thread name pattern */ #define UBI_BGT_NAME_PATTERN "ubi_bgt%dd" -/* This marker in the EBA table means that the LEB is um-mapped */ +/* + * This marker in the EBA table means that the LEB is um-mapped. + * NOTE! It has to have the same value as %UBI_ALL. + */ #define UBI_LEB_UNMAPPED -1 /* @@ -81,10 +84,7 @@ */ #define UBI_PROT_QUEUE_LEN 10 -/* - * When a field of the attaching information has this value - its real value is - * unknown. - */ +/* The volume ID/LEB number/erase counter is unknown */ #define UBI_UNKNOWN -1 /* diff --git a/trunk/include/linux/mtd/ubi.h b/trunk/include/linux/mtd/ubi.h index 9838dce7e235..f636f5df883f 100644 --- a/trunk/include/linux/mtd/ubi.h +++ b/trunk/include/linux/mtd/ubi.h @@ -25,6 +25,9 @@ #include #include +/* All voumes/LEBs */ +#define UBI_ALL -1 + /* * enum ubi_open_mode - UBI volume open mode constants. *