/fs/btrfs/ |
D | extent-io-tree.h | 69 u64 start; member 93 int lock_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, 96 static inline int lock_extent(struct extent_io_tree *tree, u64 start, u64 end) in lock_extent() argument 98 return lock_extent_bits(tree, start, end, NULL); in lock_extent() 101 int try_lock_extent(struct extent_io_tree *tree, u64 start, u64 end); 107 u64 *start, u64 search_end, 111 int test_range_bit(struct extent_io_tree *tree, u64 start, u64 end, 114 int clear_record_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, 116 int clear_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, 119 int __clear_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, [all …]
|
D | extent_io.c | 80 eb->start, eb->len, atomic_read(&eb->refs), eb->bflags, in btrfs_extent_buffer_leak_debug_check() 95 state->start, state->end, state->state, in btrfs_extent_state_leak_debug_check() 103 #define btrfs_debug_check_extent_io_range(tree, start, end) \ argument 104 __btrfs_debug_check_extent_io_range(__func__, (tree), (start), (end)) 106 struct extent_io_tree *tree, u64 start, u64 end) in __btrfs_debug_check_extent_io_range() argument 118 caller, btrfs_ino(BTRFS_I(inode)), isize, start, end); in __btrfs_debug_check_extent_io_range() 129 u64 start; member 157 changeset->bytes_changed += state->end - state->start + 1; in add_extent_changeset() 158 ret = ulist_add(&changeset->range_changed, state->start, state->end, in add_extent_changeset() 377 if (offset < entry->start) in tree_insert() [all …]
|
D | extent_map.c | 87 static u64 range_end(u64 start, u64 len) in range_end() argument 89 if (start + len < start) in range_end() 91 return start + len; in range_end() 100 u64 end = range_end(em->start, em->len); in tree_insert() 107 if (em->start < entry->start) { in tree_insert() 109 } else if (em->start >= extent_map_end(entry)) { in tree_insert() 118 while (parent && em->start >= extent_map_end(entry)) { in tree_insert() 123 if (end > entry->start && em->start < extent_map_end(entry)) in tree_insert() 128 while (parent && em->start < entry->start) { in tree_insert() 133 if (end > entry->start && em->start < extent_map_end(entry)) in tree_insert() [all …]
|
D | free-space-tree.c | 27 cache->start); in set_free_space_tree_thresholds() 60 key.objectid = block_group->start; in add_new_free_space_info() 92 key.objectid = block_group->start; in search_free_space_info() 101 block_group->start); in search_free_space_info() 164 static void le_bitmap_set(unsigned long *map, unsigned int start, int len) in le_bitmap_set() argument 166 u8 *p = ((u8 *)map) + BIT_BYTE(start); in le_bitmap_set() 167 const unsigned int size = start + len; in le_bitmap_set() 168 int bits_to_set = BITS_PER_BYTE - (start % BITS_PER_BYTE); in le_bitmap_set() 169 u8 mask_to_set = BITMAP_FIRST_BYTE_MASK(start); in le_bitmap_set() 196 u64 start, end; in convert_free_space_to_bitmaps() local [all …]
|
D | extent_io.h | 59 #define BITMAP_FIRST_BYTE_MASK(start) \ argument 60 ((BYTE_MASK << ((start) & (BITS_PER_BYTE - 1))) & BYTE_MASK) 80 u64 start; member 179 u64 start, u64 len); 190 int extent_write_locked_range(struct inode *inode, u64 start, u64 end, 198 u64 start, u64 len); 202 u64 start); 204 u64 start, unsigned long len); 206 u64 start); 209 u64 start); [all …]
|
D | delalloc-space.c | 130 struct extent_changeset **reserved, u64 start, u64 len) in btrfs_check_data_free_space() argument 136 len = round_up(start + len, fs_info->sectorsize) - in btrfs_check_data_free_space() 137 round_down(start, fs_info->sectorsize); in btrfs_check_data_free_space() 138 start = round_down(start, fs_info->sectorsize); in btrfs_check_data_free_space() 145 ret = btrfs_qgroup_reserve_data(inode, reserved, start, len); in btrfs_check_data_free_space() 180 struct extent_changeset *reserved, u64 start, u64 len) in btrfs_free_reserved_data_space() argument 185 len = round_up(start + len, fs_info->sectorsize) - in btrfs_free_reserved_data_space() 186 round_down(start, fs_info->sectorsize); in btrfs_free_reserved_data_space() 187 start = round_down(start, fs_info->sectorsize); in btrfs_free_reserved_data_space() 190 btrfs_qgroup_free_data(inode, reserved, start, len); in btrfs_free_reserved_data_space() [all …]
|
D | file.c | 300 range.start = defrag->last_offset; in __btrfs_run_defrag_inode() 312 defrag->last_offset = range.start; in __btrfs_run_defrag_inode() 517 void btrfs_drop_extent_cache(struct btrfs_inode *inode, u64 start, u64 end, in btrfs_drop_extent_cache() argument 524 u64 len = end - start + 1; in btrfs_drop_extent_cache() 532 WARN_ON(end < start); in btrfs_drop_extent_cache() 549 em = lookup_extent_mapping(em_tree, start, len); in btrfs_drop_extent_cache() 557 if (testend && em->start + em->len >= start + len) { in btrfs_drop_extent_cache() 562 start = em->start + em->len; in btrfs_drop_extent_cache() 564 len = start + len - (em->start + em->len); in btrfs_drop_extent_cache() 576 if (em->start < start) { in btrfs_drop_extent_cache() [all …]
|
D | inode.c | 86 u64 start, u64 end, int *page_started, 88 static struct extent_map *create_io_em(struct btrfs_inode *inode, u64 start, 163 u64 start, size_t size, size_t compressed_size, in insert_inline_extent() argument 189 key.offset = start; in insert_inline_extent() 229 start >> PAGE_SHIFT); in insert_inline_extent() 232 offset = offset_in_page(start); in insert_inline_extent() 245 ret = btrfs_inode_set_file_extent_range(BTRFS_I(inode), start, size); in insert_inline_extent() 271 static noinline int cow_file_range_inline(struct btrfs_inode *inode, u64 start, in cow_file_range_inline() argument 281 u64 inline_len = actual_end - start; in cow_file_range_inline() 292 if (start > 0 || in cow_file_range_inline() [all …]
|
D | extent_map.h | 34 u64 start; member 65 if (em->start + em->len < em->start) in extent_map_end() 67 return em->start + em->len; in extent_map_end() 79 u64 start, u64 len); 92 int unpin_extent_cache(struct extent_map_tree *tree, u64 start, u64 len, u64 gen); 95 u64 start, u64 len); 98 struct extent_map **em_in, u64 start, u64 len);
|
/fs/btrfs/tests/ |
D | extent-io-tests.c | 19 static noinline int process_page_range(struct inode *inode, u64 start, u64 end, in process_page_range() argument 24 unsigned long index = start >> PAGE_SHIFT; in process_page_range() 52 start, end, nr_pages, ret); in process_page_range() 69 u64 start, end, test_start; in test_find_delalloc() local 114 start = 0; in test_find_delalloc() 116 found = find_lock_delalloc_range(inode, locked_page, &start, in test_find_delalloc() 122 if (start != 0 || end != (sectorsize - 1)) { in test_find_delalloc() 124 sectorsize - 1, start, end); in test_find_delalloc() 127 unlock_extent(tmp, start, end); in test_find_delalloc() 145 start = test_start; in test_find_delalloc() [all …]
|
D | inode-tests.c | 15 static void insert_extent(struct btrfs_root *root, u64 start, u64 len, in insert_extent() argument 34 key.offset = start; in insert_extent() 293 if (em->start != 0 || em->len != 5) { in test_btrfs_get_extent() 296 em->start, em->len); in test_btrfs_get_extent() 303 offset = em->start + em->len; in test_btrfs_get_extent() 316 if (em->start != offset || em->len != (sectorsize - 5)) { in test_btrfs_get_extent() 319 offset, em->start, em->len); in test_btrfs_get_extent() 331 offset = em->start + em->len; in test_btrfs_get_extent() 343 if (em->start != offset || em->len != 4) { in test_btrfs_get_extent() 346 offset, em->start, em->len); in test_btrfs_get_extent() [all …]
|
D | extent-map-tests.c | 27 em->start, em->len, em->block_start, in free_extent_map_tree() 57 u64 start = 0; in test_case_1() local 68 em->start = 0; in test_case_1() 89 em->start = SZ_16K; in test_case_1() 110 em->start = start; in test_case_1() 112 em->block_start = start; in test_case_1() 115 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in test_case_1() 118 test_err("case1 [%llu %llu]: ret %d", start, start + len, ret); in test_case_1() 122 (em->start != 0 || extent_map_end(em) != SZ_16K || in test_case_1() 126 start, start + len, ret, em->start, em->len, in test_case_1() [all …]
|
D | free-space-tree-tests.c | 15 u64 start; member 51 end = cache->start + cache->length; in __check_free_space_extents() 64 extent_start != extents[i].start || in __check_free_space_extents() 75 extent_start != extents[i].start || in __check_free_space_extents() 90 key.objectid != extents[i].start || in __check_free_space_extents() 156 {cache->start, cache->length}, in test_empty_block_group() 173 cache->start, in test_remove_all() 191 {cache->start + alignment, cache->length - alignment}, in test_remove_beginning() 196 cache->start, alignment); in test_remove_beginning() 214 {cache->start, cache->length - alignment}, in test_remove_end() [all …]
|
/fs/pstore/ |
D | ram_core.c | 35 atomic_t start; member 49 return atomic_read(&prz->buffer->start); in buffer_start() 62 old = atomic_read(&prz->buffer->start); in buffer_start_add() 66 atomic_set(&prz->buffer->start, new); in buffer_start_add() 123 unsigned int start, unsigned int count) in persistent_ram_update_ecc() argument 136 block = buffer->data + (start & ~(ecc_block_size - 1)); in persistent_ram_update_ecc() 137 par = prz->par_buffer + (start / ecc_block_size) * ecc_size; in persistent_ram_update_ecc() 145 } while (block < buffer->data + start + count); in persistent_ram_update_ecc() 275 const void *s, unsigned int start, unsigned int count) in persistent_ram_update() argument 278 memcpy_toio(buffer->data + start, s, count); in persistent_ram_update() [all …]
|
/fs/xfs/scrub/ |
D | bitmap.c | 23 uint64_t start, in xbitmap_set() argument 33 bmr->start = start; in xbitmap_set() 75 if (ap->start > bp->start) in xbitmap_range_cmp() 77 if (ap->start < bp->start) in xbitmap_range_cmp() 137 while (sub_br->start + sub_br->len <= br->start) { in xbitmap_disunion() 142 if (sub_br->start >= br->start + br->len) { in xbitmap_disunion() 148 sub_start = sub_br->start; in xbitmap_disunion() 150 if (sub_br->start < br->start) { in xbitmap_disunion() 151 sub_len -= br->start - sub_br->start; in xbitmap_disunion() 152 sub_start = br->start; in xbitmap_disunion() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_rtbitmap.c | 97 xfs_rtblock_t start, /* starting block to look at */ in xfs_rtfind_back() argument 118 block = XFS_BITTOBLOCK(mp, start); in xfs_rtfind_back() 127 word = XFS_BITTOWORD(mp, start); in xfs_rtfind_back() 129 bit = (int)(start & (XFS_NBWORD - 1)); in xfs_rtfind_back() 130 len = start - limit + 1; in xfs_rtfind_back() 158 *rtblock = start - i + 1; in xfs_rtfind_back() 204 *rtblock = start - i + 1; in xfs_rtfind_back() 251 *rtblock = start - i + 1; in xfs_rtfind_back() 260 *rtblock = start - i + 1; in xfs_rtfind_back() 272 xfs_rtblock_t start, /* starting block to look at */ in xfs_rtfind_forw() argument [all …]
|
/fs/ |
D | userfaultfd.c | 84 unsigned long start; member 97 unsigned long start; member 115 unsigned long start, len; in userfaultfd_wake_function() local 120 start = range->start; in userfaultfd_wake_function() 122 if (len && (start > uwq->msg.arg.pagefault.address || in userfaultfd_wake_function() 123 start + len <= uwq->msg.arg.pagefault.address)) in userfaultfd_wake_function() 794 unsigned long start, unsigned long end) in userfaultfd_remove() argument 812 ewq.msg.arg.remove.start = start; in userfaultfd_remove() 821 unsigned long start, unsigned long end) in has_unmap_ctx() argument 826 if (unmap_ctx->ctx == ctx && unmap_ctx->start == start && in has_unmap_ctx() [all …]
|
/fs/squashfs/ |
D | xattr.c | 32 u64 start = SQUASHFS_XATTR_BLK(squashfs_i(inode)->xattr) in squashfs_listxattr() local 50 err = squashfs_read_metadata(sb, &entry, &start, &offset, in squashfs_listxattr() 69 err = squashfs_read_metadata(sb, buffer, &start, in squashfs_listxattr() 80 err = squashfs_read_metadata(sb, NULL, &start, in squashfs_listxattr() 88 err = squashfs_read_metadata(sb, &val, &start, &offset, in squashfs_listxattr() 93 err = squashfs_read_metadata(sb, NULL, &start, &offset, in squashfs_listxattr() 110 u64 start = SQUASHFS_XATTR_BLK(squashfs_i(inode)->xattr) in squashfs_xattr_get() local 127 err = squashfs_read_metadata(sb, &entry, &start, &offset, in squashfs_xattr_get() 137 err = squashfs_read_metadata(sb, target, &start, in squashfs_xattr_get() 140 err = squashfs_read_metadata(sb, NULL, &start, in squashfs_xattr_get() [all …]
|
D | xattr_id.c | 65 u64 start, end; in squashfs_read_xattr_id_table() local 89 start = table_start + sizeof(*id_table); in squashfs_read_xattr_id_table() 92 if (len != (end - start)) in squashfs_read_xattr_id_table() 95 table = squashfs_read_table(sb, start, len); in squashfs_read_xattr_id_table() 109 start = le64_to_cpu(table[n]); in squashfs_read_xattr_id_table() 112 if (start >= end || (end - start) > in squashfs_read_xattr_id_table() 119 start = le64_to_cpu(table[indexes - 1]); in squashfs_read_xattr_id_table() 120 if (start >= table_start || (table_start - start) > in squashfs_read_xattr_id_table()
|
D | export.c | 44 u64 start; in squashfs_inode_lookup() local 53 start = le64_to_cpu(msblk->inode_lookup_table[blk]); in squashfs_inode_lookup() 55 err = squashfs_read_metadata(sb, &ino, &start, &offset, sizeof(ino)); in squashfs_inode_lookup() 122 u64 start, end; in squashfs_read_inode_lookup_table() local 152 start = le64_to_cpu(table[n]); in squashfs_read_inode_lookup_table() 155 if (start >= end in squashfs_read_inode_lookup_table() 156 || (end - start) > in squashfs_read_inode_lookup_table() 163 start = le64_to_cpu(table[indexes - 1]); in squashfs_read_inode_lookup_table() 164 if (start >= lookup_table_start || in squashfs_read_inode_lookup_table() 165 (lookup_table_start - start) > in squashfs_read_inode_lookup_table()
|
/fs/proc/ |
D | vmcore.c | 223 static int vmcoredd_copy_dumps(void *dst, u64 start, size_t size, int userbuf) in vmcoredd_copy_dumps() argument 233 if (start < offset + dump->size) { in vmcoredd_copy_dumps() 234 tsz = min(offset + (u64)dump->size - start, (u64)size); in vmcoredd_copy_dumps() 235 buf = dump->buf + start - offset; in vmcoredd_copy_dumps() 242 start += tsz; in vmcoredd_copy_dumps() 259 u64 start, size_t size) in vmcoredd_mmap_dumps() argument 269 if (start < offset + dump->size) { in vmcoredd_mmap_dumps() 270 tsz = min(offset + (u64)dump->size - start, (u64)size); in vmcoredd_mmap_dumps() 271 buf = dump->buf + start - offset; in vmcoredd_mmap_dumps() 279 start += tsz; in vmcoredd_mmap_dumps() [all …]
|
/fs/hfs/ |
D | bitmap.c | 32 u32 mask, start, len, n; in hfs_find_set_zero_bits() local 70 start = (curr - bitmap) * 32 + i; in hfs_find_set_zero_bits() 71 if (start >= size) in hfs_find_set_zero_bits() 72 return start; in hfs_find_set_zero_bits() 74 len = min(size - start, len); in hfs_find_set_zero_bits() 108 *max = (curr - bitmap) * 32 + i - start; in hfs_find_set_zero_bits() 109 return start; in hfs_find_set_zero_bits() 193 int hfs_clear_vbm_bits(struct super_block *sb, u16 start, u16 count) in hfs_clear_vbm_bits() argument 203 hfs_dbg(BITMAP, "clear_bits: %u,%u\n", start, count); in hfs_clear_vbm_bits() 205 if ((start + count) > HFS_SB(sb)->fs_ablocks) in hfs_clear_vbm_bits() [all …]
|
D | extent.c | 223 u16 count, start; in hfs_add_extent() local 230 start = be16_to_cpu(extent->block); in hfs_add_extent() 231 if (alloc_block != start + count) { in hfs_add_extent() 251 u16 count, start; in hfs_free_extents() local 267 start = be16_to_cpu(extent->block); in hfs_free_extents() 269 hfs_clear_vbm_bits(sb, start, count); in hfs_free_extents() 275 hfs_clear_vbm_bits(sb, start + count, block_nr); in hfs_free_extents() 290 u32 total_blocks, blocks, start; in hfs_free_fork() local 323 start = be16_to_cpu(fd.key->ext.FABN); in hfs_free_fork() 324 hfs_free_extents(sb, extent, total_blocks - start, total_blocks); in hfs_free_fork() [all …]
|
/fs/hfsplus/ |
D | extents.c | 312 u32 count, start; in hfsplus_add_extent() local 319 start = be32_to_cpu(extent->start_block); in hfsplus_add_extent() 320 if (alloc_block != start + count) { in hfsplus_add_extent() 341 u32 count, start; in hfsplus_free_extents() local 361 start = be32_to_cpu(extent->start_block); in hfsplus_free_extents() 363 err = hfsplus_block_free(sb, start, count); in hfsplus_free_extents() 367 start, count); in hfsplus_free_extents() 374 err = hfsplus_block_free(sb, start + count, block_nr); in hfsplus_free_extents() 378 start, count); in hfsplus_free_extents() 401 u32 total_blocks, blocks, start; in hfsplus_free_fork() local [all …]
|
/fs/adfs/ |
D | map.c | 74 unsigned int start = dm->dm_startbit; in lookup_zone() local 82 frag = GET_FRAG_ID(map, start, idmask); in lookup_zone() 84 fragend = find_next_bit_le(map, endbit, start + idlen); in lookup_zone() 88 if (start == freelink) { in lookup_zone() 91 unsigned int length = fragend + 1 - start; in lookup_zone() 94 return start + *offset; in lookup_zone() 98 start = fragend + 1; in lookup_zone() 99 } while (start < endbit); in lookup_zone() 104 frag, start, fragend); in lookup_zone() 122 unsigned int start = 8, fragend; in scan_free_map() local [all …]
|