Lines Matching refs:newes

147 static int __es_insert_extent(struct inode *inode, struct extent_status *newes,
785 static int __es_insert_extent(struct inode *inode, struct extent_status *newes, in __es_insert_extent() argument
797 if (newes->es_lblk < es->es_lblk) { in __es_insert_extent()
798 if (ext4_es_can_be_merged(newes, es)) { in __es_insert_extent()
803 es->es_lblk = newes->es_lblk; in __es_insert_extent()
804 es->es_len += newes->es_len; in __es_insert_extent()
808 newes->es_pblk); in __es_insert_extent()
813 } else if (newes->es_lblk > ext4_es_end(es)) { in __es_insert_extent()
814 if (ext4_es_can_be_merged(es, newes)) { in __es_insert_extent()
815 es->es_len += newes->es_len; in __es_insert_extent()
832 ext4_es_init_extent(inode, es, newes->es_lblk, newes->es_len, in __es_insert_extent()
833 newes->es_pblk); in __es_insert_extent()
851 struct extent_status newes; in ext4_es_insert_extent() local
879 newes.es_lblk = lblk; in ext4_es_insert_extent()
880 newes.es_len = len; in ext4_es_insert_extent()
881 ext4_es_store_pblock_status(&newes, pblk, status); in ext4_es_insert_extent()
882 trace_ext4_es_insert_extent(inode, &newes); in ext4_es_insert_extent()
884 ext4_es_insert_extent_check(inode, &newes); in ext4_es_insert_extent()
909 err2 = __es_insert_extent(inode, &newes, es2); in ext4_es_insert_extent()
910 if (err2 == -ENOMEM && !ext4_es_must_keep(&newes)) in ext4_es_insert_extent()
949 struct extent_status newes; in ext4_es_cache_extent() local
955 newes.es_lblk = lblk; in ext4_es_cache_extent()
956 newes.es_len = len; in ext4_es_cache_extent()
957 ext4_es_store_pblock_status(&newes, pblk, status); in ext4_es_cache_extent()
958 trace_ext4_es_cache_extent(inode, &newes); in ext4_es_cache_extent()
969 __es_insert_extent(inode, &newes, NULL); in ext4_es_cache_extent()
1404 struct extent_status newes; in __es_remove_extent() local
1406 newes.es_lblk = end + 1; in __es_remove_extent()
1407 newes.es_len = len2; in __es_remove_extent()
1413 ext4_es_store_pblock_status(&newes, block, in __es_remove_extent()
1415 err = __es_insert_extent(inode, &newes, prealloc); in __es_remove_extent()
1417 if (!ext4_es_must_keep(&newes)) in __es_remove_extent()
2064 struct extent_status newes; in ext4_es_insert_delayed_block() local
2076 newes.es_lblk = lblk; in ext4_es_insert_delayed_block()
2077 newes.es_len = 1; in ext4_es_insert_delayed_block()
2078 ext4_es_store_pblock_status(&newes, ~0, EXTENT_STATUS_DELAYED); in ext4_es_insert_delayed_block()
2079 trace_ext4_es_insert_delayed_block(inode, &newes, allocated); in ext4_es_insert_delayed_block()
2081 ext4_es_insert_extent_check(inode, &newes); in ext4_es_insert_delayed_block()
2102 err2 = __es_insert_extent(inode, &newes, es2); in ext4_es_insert_delayed_block()