From 3655f068b25661b54d3bc7b82e41eeba39d27f4a Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sat, 5 May 2007 17:36:17 +0300 Subject: [PATCH] --- yaml --- r: 61216 b: refs/heads/master c: 79b510c0f21174f4bd055d1aab156e548ae3a5f2 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/mtd/ubi/scan.c | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 01b1b7ca8039..19d1cd4e0e2f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 941dfb07ed91451b1c58626a0d258dfdf468b593 +refs/heads/master: 79b510c0f21174f4bd055d1aab156e548ae3a5f2 diff --git a/trunk/drivers/mtd/ubi/scan.c b/trunk/drivers/mtd/ubi/scan.c index 197cd650356b..b24af2104a2a 100644 --- a/trunk/drivers/mtd/ubi/scan.c +++ b/trunk/drivers/mtd/ubi/scan.c @@ -407,8 +407,12 @@ static int compare_lebs(const struct ubi_device *ubi, * @vid_hdr: the volume identifier header * @bitflips: if bit-flips were detected when this physical eraseblock was read * - * This function returns zero in case of success and a negative error code in - * case of failure. + * This function adds information about a used physical eraseblock to the + * 'used' tree of the corresponding volume. The function is rather complex + * because it has to handle cases when this is not the first physical + * eraseblock belonging to the same logical eraseblock, and the newer one has + * to be picked, while the older one has to be dropped. This function returns + * zero in case of success and a negative error code in case of failure. */ int ubi_scan_add_used(const struct ubi_device *ubi, struct ubi_scan_info *si, int pnum, int ec, const struct ubi_vid_hdr *vid_hdr,