Lines Matching refs:newex
105 struct ext2fs_extent newex, ex; in ext_falloc_helper() local
306 err = ext2fs_extent_get(handle, EXT2_EXTENT_NEXT_LEAF, &newex); in ext_falloc_helper()
499 newex.e_lblk = range_start; in ext_falloc_helper()
500 err = ext2fs_map_cluster_block(fs, ino, inode, newex.e_lblk, in ext_falloc_helper()
506 newex.e_pblk = pblk; in ext_falloc_helper()
507 newex.e_len = cluster_fill; in ext_falloc_helper()
508 newex.e_flags = (flags & EXT2_FALLOCATE_FORCE_INIT ? 0 : in ext_falloc_helper()
510 dbg_print_extent("ext_falloc iclus left+", &newex); in ext_falloc_helper()
511 ext2fs_extent_goto(handle, newex.e_lblk); in ext_falloc_helper()
519 if (ex.e_lblk > newex.e_lblk) in ext_falloc_helper()
525 newex.e_lblk); in ext_falloc_helper()
526 err = ext2fs_extent_insert(handle, op, &newex); in ext_falloc_helper()
533 if (!(newex.e_flags & EXT2_EXTENT_FLAGS_UNINIT) && in ext_falloc_helper()
535 err = ext2fs_zero_blocks2(fs, newex.e_pblk, in ext_falloc_helper()
536 newex.e_len, NULL, NULL); in ext_falloc_helper()
551 newex.e_lblk = y & ~EXT2FS_CLUSTER_MASK(fs); in ext_falloc_helper()
552 err = ext2fs_map_cluster_block(fs, ino, inode, newex.e_lblk, in ext_falloc_helper()
558 newex.e_pblk = pblk; in ext_falloc_helper()
559 newex.e_len = cluster_fill; in ext_falloc_helper()
560 newex.e_flags = (flags & EXT2_FALLOCATE_FORCE_INIT ? 0 : in ext_falloc_helper()
562 dbg_print_extent("ext_falloc iclus right+", &newex); in ext_falloc_helper()
563 ext2fs_extent_goto(handle, newex.e_lblk); in ext_falloc_helper()
571 if (ex.e_lblk > newex.e_lblk) in ext_falloc_helper()
577 newex.e_lblk); in ext_falloc_helper()
578 err = ext2fs_extent_insert(handle, op, &newex); in ext_falloc_helper()
585 if (!(newex.e_flags & EXT2_EXTENT_FLAGS_UNINIT) && in ext_falloc_helper()
587 err = ext2fs_zero_blocks2(fs, newex.e_pblk, in ext_falloc_helper()
588 newex.e_len, NULL, NULL); in ext_falloc_helper()
600 newex.e_lblk = range_start; in ext_falloc_helper()
603 newex.e_flags = 0; in ext_falloc_helper()
606 newex.e_flags = EXT2_EXTENT_FLAGS_UNINIT; in ext_falloc_helper()
611 cluster_fill = newex.e_lblk & EXT2FS_CLUSTER_MASK(fs); in ext_falloc_helper()
623 newex.e_pblk = pblk + cluster_fill; in ext_falloc_helper()
624 newex.e_len = plen - cluster_fill; in ext_falloc_helper()
625 dbg_print_extent("ext_falloc create", &newex); in ext_falloc_helper()
626 ext2fs_extent_goto(handle, newex.e_lblk); in ext_falloc_helper()
634 if (ex.e_lblk > newex.e_lblk) in ext_falloc_helper()
640 newex.e_lblk); in ext_falloc_helper()
641 err = ext2fs_extent_insert(handle, op, &newex); in ext_falloc_helper()
648 if (!(newex.e_flags & EXT2_EXTENT_FLAGS_UNINIT) && in ext_falloc_helper()
658 newex.e_lblk += plen - cluster_fill; in ext_falloc_helper()