Lines Matching refs:sleb
134 struct ubifs_scan_leb *sleb; in ubifs_start_scan() local
139 sleb = kzalloc(sizeof(struct ubifs_scan_leb), GFP_NOFS); in ubifs_start_scan()
140 if (!sleb) in ubifs_start_scan()
143 sleb->lnum = lnum; in ubifs_start_scan()
144 INIT_LIST_HEAD(&sleb->nodes); in ubifs_start_scan()
145 sleb->buf = sbuf; in ubifs_start_scan()
151 kfree(sleb); in ubifs_start_scan()
159 return sleb; in ubifs_start_scan()
169 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, in ubifs_end_scan() argument
176 sleb->endpt = ALIGN(offs, c->min_io_size); in ubifs_end_scan()
188 int ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, in ubifs_add_snod() argument
220 list_add_tail(&snod->list, &sleb->nodes); in ubifs_add_snod()
221 sleb->nodes_cnt += 1; in ubifs_add_snod()
266 struct ubifs_scan_leb *sleb; in ubifs_scan() local
268 sleb = ubifs_start_scan(c, lnum, offs, sbuf); in ubifs_scan()
269 if (IS_ERR(sleb)) in ubifs_scan()
270 return sleb; in ubifs_scan()
310 err = ubifs_add_snod(c, sleb, buf, offs); in ubifs_scan()
327 ubifs_end_scan(c, sleb, lnum, offs); in ubifs_scan()
340 return sleb; in ubifs_scan()
348 ubifs_scan_destroy(sleb); in ubifs_scan()
353 ubifs_scan_destroy(sleb); in ubifs_scan()
361 void ubifs_scan_destroy(struct ubifs_scan_leb *sleb) in ubifs_scan_destroy() argument
366 head = &sleb->nodes; in ubifs_scan_destroy()
372 kfree(sleb); in ubifs_scan_destroy()