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