Lines Matching defs:sleb
128 struct ubifs_scan_leb *sleb;
133 sleb = kzalloc(sizeof(struct ubifs_scan_leb), GFP_NOFS);
134 if (!sleb)
137 sleb->lnum = lnum;
138 INIT_LIST_HEAD(&sleb->nodes);
139 sleb->buf = sbuf;
145 kfree(sleb);
153 return sleb;
159 * @sleb: scanning information
163 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
169 sleb->endpt = ALIGN(offs, c->min_io_size);
175 * @sleb: scanning information
181 int ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
213 list_add_tail(&snod->list, &sleb->nodes);
214 sleb->nodes_cnt += 1;
259 struct ubifs_scan_leb *sleb;
261 sleb = ubifs_start_scan(c, lnum, offs, sbuf);
262 if (IS_ERR(sleb))
263 return sleb;
303 err = ubifs_add_snod(c, sleb, buf, offs);
320 ubifs_end_scan(c, sleb, lnum, offs);
333 return sleb;
341 ubifs_scan_destroy(sleb);
346 ubifs_scan_destroy(sleb);
352 * @sleb: scanning information to free
354 void ubifs_scan_destroy(struct ubifs_scan_leb *sleb)
359 head = &sleb->nodes;
365 kfree(sleb);