• Home
  • Raw
  • Download

Lines Matching refs:old

311 	struct pnfs_block_short_extent *old, *save;  in add_to_commitlist()  local
321 list_for_each_entry_safe(old, save, clist, bse_node) { in add_to_commitlist()
322 if (new->bse_f_offset < old->bse_f_offset) in add_to_commitlist()
324 if (end <= old->bse_f_offset + old->bse_length) { in add_to_commitlist()
330 old->bse_f_offset + old->bse_length) { in add_to_commitlist()
332 if (new->bse_mdev == old->bse_mdev) { in add_to_commitlist()
335 old->bse_f_offset; in add_to_commitlist()
336 new->bse_f_offset = old->bse_f_offset; in add_to_commitlist()
337 list_del(&old->bse_node); in add_to_commitlist()
339 kfree(old); in add_to_commitlist()
346 list_add_tail(&new->bse_node, &old->bse_node); in add_to_commitlist()
350 old = list_prepare_entry(new, clist, bse_node); in add_to_commitlist()
351 list_for_each_entry_safe_continue(old, save, clist, bse_node) { in add_to_commitlist()
352 if (end < old->bse_f_offset) in add_to_commitlist()
355 if (new->bse_mdev == old->bse_mdev) { in add_to_commitlist()
356 if (end < old->bse_f_offset + old->bse_length) { in add_to_commitlist()
358 end = old->bse_f_offset + old->bse_length; in add_to_commitlist()
361 list_del(&old->bse_node); in add_to_commitlist()
363 kfree(old); in add_to_commitlist()
474 extents_consistent(struct pnfs_block_extent *old, struct pnfs_block_extent *new) in extents_consistent() argument
477 return (new->be_state == old->be_state) && in extents_consistent()
479 ((new->be_v_offset - old->be_v_offset == in extents_consistent()
480 new->be_f_offset - old->be_f_offset) && in extents_consistent()
481 new->be_mdev == old->be_mdev)); in extents_consistent()
749 struct pnfs_block_extent *be, *e1, *e2, *e3, *new, *old; in set_to_rw() local
805 old = new; in set_to_rw()
807 list_add(&new->be_node, &old->be_node); in set_to_rw()