swap_eb
struct swap_eb *eb;
struct swap_eb *eb;
struct swap_eb *eb_data;
struct swap_eb *eb;
struct swap_eb *curr_write;
eblk_bytes = sizeof(struct swap_eb)*d->eblks;
static loff_t mtdswap_eb_offset(struct mtdswap_dev *d, struct swap_eb *eb)
static void mtdswap_eb_detach(struct mtdswap_dev *d, struct swap_eb *eb)
static void __mtdswap_rb_add(struct rb_root *root, struct swap_eb *eb)
struct swap_eb *cur;
cur = rb_entry(parent, struct swap_eb, rb);
static void mtdswap_rb_add(struct mtdswap_dev *d, struct swap_eb *eb, int idx)
static int mtdswap_handle_badblock(struct mtdswap_dev *d, struct swap_eb *eb)
static int mtdswap_handle_write_error(struct mtdswap_dev *d, struct swap_eb *eb)
struct swap_eb *curr_write = d->curr_write;
static int mtdswap_read_markers(struct mtdswap_dev *d, struct swap_eb *eb)
static int mtdswap_write_marker(struct mtdswap_dev *d, struct swap_eb *eb,
struct swap_eb *eb;
median = rb_entry(medrb, struct swap_eb, rb)->erase_count;
struct swap_eb *eb;
static void mtdswap_store_eb(struct mtdswap_dev *d, struct swap_eb *eb)
static int mtdswap_erase_block(struct mtdswap_dev *d, struct swap_eb *eb)
struct swap_eb *old_eb = d->curr_write;
struct swap_eb *eb;
eb = rb_entry(rb_first(clean_root), struct swap_eb, rb);
struct swap_eb *eb;
struct swap_eb *eb, *oldeb;
static int mtdswap_gc_eblock(struct mtdswap_dev *d, struct swap_eb *eb)
#define MTDSWAP_ECNT_MIN(rbroot) (rb_entry(rb_first(rbroot), struct swap_eb, \
#define MTDSWAP_ECNT_MAX(rbroot) (rb_entry(rb_last(rbroot), struct swap_eb, \
static struct swap_eb *mtdswap_pick_gc_eblk(struct mtdswap_dev *d,
struct swap_eb *eb = NULL;
eb = rb_entry(rb_first(rp), struct swap_eb, rb);
struct swap_eb *eb)
struct swap_eb *eb;