aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/scan.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/scan.h')
-rw-r--r--drivers/mtd/ubi/scan.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mtd/ubi/scan.h b/drivers/mtd/ubi/scan.h
index 0f0725e18b7f..3e19cb665a55 100644
--- a/drivers/mtd/ubi/scan.h
+++ b/drivers/mtd/ubi/scan.h
@@ -145,26 +145,26 @@ struct ubi_vid_hdr;
145/* 145/*
146 * ubi_scan_move_to_list - move a PEB from the volume tree to a list. 146 * ubi_scan_move_to_list - move a PEB from the volume tree to a list.
147 * 147 *
148 * @sv: volume attaching information 148 * @av: volume attaching information
149 * @aeb: scanning eraseblock information 149 * @aeb: scanning eraseblock information
150 * @list: the list to move to 150 * @list: the list to move to
151 */ 151 */
152static inline void ubi_scan_move_to_list(struct ubi_ainf_volume *sv, 152static inline void ubi_scan_move_to_list(struct ubi_ainf_volume *av,
153 struct ubi_ainf_peb *aeb, 153 struct ubi_ainf_peb *aeb,
154 struct list_head *list) 154 struct list_head *list)
155{ 155{
156 rb_erase(&aeb->u.rb, &sv->root); 156 rb_erase(&aeb->u.rb, &av->root);
157 list_add_tail(&aeb->u.list, list); 157 list_add_tail(&aeb->u.list, list);
158} 158}
159 159
160int ubi_scan_add_used(struct ubi_device *ubi, struct ubi_attach_info *ai, 160int ubi_scan_add_used(struct ubi_device *ubi, struct ubi_attach_info *ai,
161 int pnum, int ec, const struct ubi_vid_hdr *vid_hdr, 161 int pnum, int ec, const struct ubi_vid_hdr *vid_hdr,
162 int bitflips); 162 int bitflips);
163struct ubi_ainf_volume *ubi_scan_find_sv(const struct ubi_attach_info *ai, 163struct ubi_ainf_volume *ubi_scan_find_av(const struct ubi_attach_info *ai,
164 int vol_id); 164 int vol_id);
165struct ubi_ainf_peb *ubi_scan_find_aeb(const struct ubi_ainf_volume *sv, 165struct ubi_ainf_peb *ubi_scan_find_aeb(const struct ubi_ainf_volume *av,
166 int lnum); 166 int lnum);
167void ubi_scan_rm_volume(struct ubi_attach_info *ai, struct ubi_ainf_volume *sv); 167void ubi_scan_rm_volume(struct ubi_attach_info *ai, struct ubi_ainf_volume *av);
168struct ubi_ainf_peb *ubi_scan_get_free_peb(struct ubi_device *ubi, 168struct ubi_ainf_peb *ubi_scan_get_free_peb(struct ubi_device *ubi,
169 struct ubi_attach_info *ai); 169 struct ubi_attach_info *ai);
170int ubi_scan_erase_peb(struct ubi_device *ubi, const struct ubi_attach_info *ai, 170int ubi_scan_erase_peb(struct ubi_device *ubi, const struct ubi_attach_info *ai,