Lines Matching defs:frags
1219 * @frags: Linked list of VBLK fragments
1227 static bool ldm_frag_add (const u8 *data, int size, struct list_head *frags)
1233 BUG_ON (!data || !frags);
1252 list_for_each (item, frags) {
1269 list_add_tail (&f->list, frags);
1309 * @frags: Linked list of VBLK fragments
1318 static bool ldm_frag_commit (struct list_head *frags, struct ldmdb *ldb)
1323 BUG_ON (!frags || !ldb);
1325 list_for_each (item, frags) {
1359 LIST_HEAD (frags);
1386 if (!ldm_frag_add (data, size, &frags))
1395 result = ldm_frag_commit (&frags, ldb); /* Failures, already logged */
1399 ldm_frag_free (&frags);