Lines Matching refs:new
375 layouts_try_merge(struct nfsd4_layout_seg *lo, struct nfsd4_layout_seg *new) in layouts_try_merge() argument
377 if (lo->iomode != new->iomode) in layouts_try_merge()
379 if (layout_end(new) < lo->offset) in layouts_try_merge()
381 if (layout_end(lo) < new->offset) in layouts_try_merge()
384 lo->offset = min(lo->offset, new->offset); in layouts_try_merge()
385 layout_update_len(lo, max(layout_end(lo), layout_end(new))); in layouts_try_merge()
413 struct nfs4_layout *lp, *new = NULL; in nfsd4_insert_layout() local
428 new = kmem_cache_alloc(nfs4_layout_cache, GFP_KERNEL); in nfsd4_insert_layout()
429 if (!new) in nfsd4_insert_layout()
431 memcpy(&new->lo_seg, seg, sizeof(lp->lo_seg)); in nfsd4_insert_layout()
432 new->lo_state = ls; in nfsd4_insert_layout()
445 list_add_tail(&new->lo_perstate, &ls->ls_layouts); in nfsd4_insert_layout()
446 new = NULL; in nfsd4_insert_layout()
452 if (new) in nfsd4_insert_layout()
453 kmem_cache_free(nfs4_layout_cache, new); in nfsd4_insert_layout()