aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/wl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/wl.c')
-rw-r--r--drivers/mtd/ubi/wl.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c
index 2a5d2a0e14ad..05d70937b543 100644
--- a/drivers/mtd/ubi/wl.c
+++ b/drivers/mtd/ubi/wl.c
@@ -632,8 +632,7 @@ out_free:
632} 632}
633 633
634/** 634/**
635 * check_protection_over - check if it is time to stop protecting some 635 * check_protection_over - check if it is time to stop protecting some PEBs.
636 * physical eraseblocks.
637 * @ubi: UBI device description object 636 * @ubi: UBI device description object
638 * 637 *
639 * This function is called after each erase operation, when the absolute erase 638 * This function is called after each erase operation, when the absolute erase
@@ -1601,8 +1600,7 @@ void ubi_wl_close(struct ubi_device *ubi)
1601#ifdef CONFIG_MTD_UBI_DEBUG_PARANOID 1600#ifdef CONFIG_MTD_UBI_DEBUG_PARANOID
1602 1601
1603/** 1602/**
1604 * paranoid_check_ec - make sure that the erase counter of a physical eraseblock 1603 * paranoid_check_ec - make sure that the erase counter of a PEB is correct.
1605 * is correct.
1606 * @ubi: UBI device description object 1604 * @ubi: UBI device description object
1607 * @pnum: the physical eraseblock number to check 1605 * @pnum: the physical eraseblock number to check
1608 * @ec: the erase counter to check 1606 * @ec: the erase counter to check
@@ -1643,13 +1641,12 @@ out_free:
1643} 1641}
1644 1642
1645/** 1643/**
1646 * paranoid_check_in_wl_tree - make sure that a wear-leveling entry is present 1644 * paranoid_check_in_wl_tree - check that wear-leveling entry is in WL RB-tree.
1647 * in a WL RB-tree.
1648 * @e: the wear-leveling entry to check 1645 * @e: the wear-leveling entry to check
1649 * @root: the root of the tree 1646 * @root: the root of the tree
1650 * 1647 *
1651 * This function returns zero if @e is in the @root RB-tree and %1 if it 1648 * This function returns zero if @e is in the @root RB-tree and %1 if it is
1652 * is not. 1649 * not.
1653 */ 1650 */
1654static int paranoid_check_in_wl_tree(struct ubi_wl_entry *e, 1651static int paranoid_check_in_wl_tree(struct ubi_wl_entry *e,
1655 struct rb_root *root) 1652 struct rb_root *root)