Lines Matching refs:sleb
132 struct ubifs_scan_leb *sleb; in ubifs_start_scan() local
137 sleb = kzalloc(sizeof(struct ubifs_scan_leb), GFP_NOFS); in ubifs_start_scan()
138 if (!sleb) in ubifs_start_scan()
141 sleb->lnum = lnum; in ubifs_start_scan()
142 INIT_LIST_HEAD(&sleb->nodes); in ubifs_start_scan()
143 sleb->buf = sbuf; in ubifs_start_scan()
149 kfree(sleb); in ubifs_start_scan()
157 return sleb; in ubifs_start_scan()
167 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, in ubifs_end_scan() argument
174 sleb->endpt = ALIGN(offs, c->min_io_size); in ubifs_end_scan()
186 int ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, in ubifs_add_snod() argument
218 list_add_tail(&snod->list, &sleb->nodes); in ubifs_add_snod()
219 sleb->nodes_cnt += 1; in ubifs_add_snod()
264 struct ubifs_scan_leb *sleb; in ubifs_scan() local
266 sleb = ubifs_start_scan(c, lnum, offs, sbuf); in ubifs_scan()
267 if (IS_ERR(sleb)) in ubifs_scan()
268 return sleb; in ubifs_scan()
308 err = ubifs_add_snod(c, sleb, buf, offs); in ubifs_scan()
325 ubifs_end_scan(c, sleb, lnum, offs); in ubifs_scan()
338 return sleb; in ubifs_scan()
346 ubifs_scan_destroy(sleb); in ubifs_scan()
351 ubifs_scan_destroy(sleb); in ubifs_scan()
359 void ubifs_scan_destroy(struct ubifs_scan_leb *sleb) in ubifs_scan_destroy() argument
364 head = &sleb->nodes; in ubifs_scan_destroy()
370 kfree(sleb); in ubifs_scan_destroy()