Lines Matching refs:sleb
138 struct ubifs_scan_leb *sleb;
143 sleb = kzalloc(sizeof(struct ubifs_scan_leb), GFP_NOFS);
144 if (!sleb)
147 sleb->lnum = lnum;
148 INIT_LIST_HEAD(&sleb->nodes);
149 sleb->buf = sbuf;
155 kfree(sleb);
160 sleb->ecc = 1;
162 return sleb;
168 * @sleb: scanning information
174 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
181 sleb->endpt = ALIGN(offs, c->min_io_size);
187 * @sleb: scanning information
193 int ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
223 list_add_tail(&snod->list, &sleb->nodes);
224 sleb->nodes_cnt += 1;
271 struct ubifs_scan_leb *sleb;
273 sleb = ubifs_start_scan(c, lnum, offs, sbuf);
274 if (IS_ERR(sleb))
275 return sleb;
315 err = ubifs_add_snod(c, sleb, buf, offs);
332 ubifs_end_scan(c, sleb, lnum, offs);
345 return sleb;
353 ubifs_scan_destroy(sleb);
358 ubifs_scan_destroy(sleb);
364 * @sleb: scanning information to free
366 void ubifs_scan_destroy(struct ubifs_scan_leb *sleb)
371 head = &sleb->nodes;
377 kfree(sleb);