/fs/ceph/ |
D | mdsmap.c | 45 #define __decode_and_drop_type(p, end, type, bad) \ argument 47 if (*p + sizeof(type) > end) \ 52 #define __decode_and_drop_set(p, end, type, bad) \ argument 56 ceph_decode_32_safe(p, end, n, bad); \ 58 ceph_decode_need(p, end, need, bad); \ 62 #define __decode_and_drop_map(p, end, ktype, vtype, bad) \ argument 66 ceph_decode_32_safe(p, end, n, bad); \ 68 ceph_decode_need(p, end, need, bad); \ 73 static int __decode_and_drop_compat_set(void **p, void* end) in __decode_and_drop_compat_set() argument 79 ceph_decode_need(p, end, sizeof(u64) + sizeof(u32), bad); in __decode_and_drop_compat_set() [all …]
|
D | mds_client.c | 70 static int parse_reply_info_quota(void **p, void *end, in parse_reply_info_quota() argument 76 ceph_decode_8_safe(p, end, struct_v, bad); in parse_reply_info_quota() 77 ceph_decode_8_safe(p, end, struct_compat, bad); in parse_reply_info_quota() 82 ceph_decode_32_safe(p, end, struct_len, bad); in parse_reply_info_quota() 83 ceph_decode_need(p, end, struct_len, bad); in parse_reply_info_quota() 84 end = *p + struct_len; in parse_reply_info_quota() 85 ceph_decode_64_safe(p, end, info->max_bytes, bad); in parse_reply_info_quota() 86 ceph_decode_64_safe(p, end, info->max_files, bad); in parse_reply_info_quota() 87 *p = end; in parse_reply_info_quota() 96 static int parse_reply_info_in(void **p, void *end, in parse_reply_info_in() argument [all …]
|
/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 25 unsigned long end_index = end >> 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 115 end = 0; in test_find_delalloc() 117 &end); 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() 146 end = 0; in test_find_delalloc() [all …]
|
/fs/btrfs/ |
D | extent_io.h | 110 struct page *page, u64 start, u64 end, 141 u64 end; /* inclusive */ member 268 int lock_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, 271 static inline int lock_extent(struct extent_io_tree *tree, u64 start, u64 end) in lock_extent() argument 273 return lock_extent_bits(tree, start, end, NULL); in lock_extent() 276 int try_lock_extent(struct extent_io_tree *tree, u64 start, u64 end); 287 int test_range_bit(struct extent_io_tree *tree, u64 start, u64 end, 290 int clear_record_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, 292 int clear_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, 295 int __clear_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, [all …]
|
D | extent_io.c | 71 state->start, state->end, state->state, in btrfs_leak_debug_check() 87 #define btrfs_debug_check_extent_io_range(tree, start, end) \ argument 88 __btrfs_debug_check_extent_io_range(__func__, (tree), (start), (end)) 90 struct extent_io_tree *tree, u64 start, u64 end) in __btrfs_debug_check_extent_io_range() argument 99 if (end >= PAGE_SIZE && (end % 2) == 0 && end != isize - 1) { in __btrfs_debug_check_extent_io_range() 102 caller, btrfs_ino(BTRFS_I(inode)), isize, start, end); in __btrfs_debug_check_extent_io_range() 114 u64 end; member 142 changeset->bytes_changed += state->end - state->start + 1; in add_extent_changeset() 143 ret = ulist_add(&changeset->range_changed, state->start, state->end, in add_extent_changeset() 350 else if (offset > entry->end) in tree_insert() [all …]
|
D | free-space-tree.c | 193 u64 start, end; in convert_free_space_to_bitmaps() local 209 end = block_group->key.objectid + block_group->key.offset; in convert_free_space_to_bitmaps() 211 key.objectid = end - 1; in convert_free_space_to_bitmaps() 235 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps() 236 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps() 284 while (i < end) { in convert_free_space_to_bitmaps() 289 extent_size = min(end - i, bitmap_range); in convert_free_space_to_bitmaps() 332 u64 start, end; in convert_free_space_to_extents() local 348 end = block_group->key.objectid + block_group->key.offset; in convert_free_space_to_extents() 350 key.objectid = end - 1; in convert_free_space_to_extents() [all …]
|
D | file.c | 472 const u64 end = start + len - 1; in btrfs_find_new_delalloc_bytes() local 474 while (search_start < end) { in btrfs_find_new_delalloc_bytes() 475 const u64 search_len = end - search_start + 1; in btrfs_find_new_delalloc_bytes() 587 void btrfs_drop_extent_cache(struct btrfs_inode *inode, u64 start, u64 end, in btrfs_drop_extent_cache() argument 594 u64 len = end - start + 1; in btrfs_drop_extent_cache() 602 WARN_ON(end < start); in btrfs_drop_extent_cache() 603 if (end == (u64)-1) { in btrfs_drop_extent_cache() 749 struct btrfs_path *path, u64 start, u64 end, in __btrfs_drop_extents() argument 779 btrfs_drop_extent_cache(BTRFS_I(inode), start, end - 1, 0); in __btrfs_drop_extents() 827 if (key.type > BTRFS_EXTENT_DATA_KEY || key.offset >= end) in __btrfs_drop_extents() [all …]
|
/fs/cifs/ |
D | asn1.c | 86 unsigned char *end; /* Octet after last octet */ member 101 ctx->end = buf + len; in asn1_open() 109 if (ctx->pointer >= ctx->end) { in asn1_octet_decode() 123 if (ctx->pointer >= ctx->end) { 205 if (*len > ctx->end - ctx->pointer) in asn1_length_decode() 487 unsigned char *end; in decode_negTokenInit() local 497 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { in decode_negTokenInit() 507 rc = asn1_header_decode(&ctx, &end, &cls, &con, &tag); in decode_negTokenInit() 511 rc = asn1_oid_decode(&ctx, end, &oid, &oidlen); in decode_negTokenInit() 528 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { in decode_negTokenInit() [all …]
|
/fs/nfs/ |
D | namespace.c | 54 char *end; in nfs_path() local 60 end = buffer+buflen; in nfs_path() 61 *--end = '\0'; in nfs_path() 74 end -= namelen; in nfs_path() 75 memcpy(end, dentry->d_name.name, namelen); in nfs_path() 76 *--end = '/'; in nfs_path() 85 if ((flags & NFS_PATH_CANONICAL) && *end != '/') { in nfs_path() 91 *--end = '/'; in nfs_path() 93 *p = end; in nfs_path() 99 return end; in nfs_path() [all …]
|
/fs/ext4/ |
D | extents_status.c | 149 ext4_lblk_t end, int *reserved); 258 ext4_lblk_t lblk, ext4_lblk_t end, in __es_find_extent_range() argument 266 WARN_ON(end < lblk); in __es_find_extent_range() 288 if (es1->es_lblk > end) { in __es_find_extent_range() 311 ext4_lblk_t lblk, ext4_lblk_t end, in ext4_es_find_extent_range() argument 317 __es_find_extent_range(inode, matching_fn, lblk, end, es); in ext4_es_find_extent_range() 340 ext4_lblk_t start, ext4_lblk_t end) in __es_scan_range() argument 344 __es_find_extent_range(inode, matching_fn, start, end, &es); in __es_scan_range() 350 else if (start <= es.es_lblk && es.es_lblk <= end) in __es_scan_range() 360 ext4_lblk_t lblk, ext4_lblk_t end) in ext4_es_scan_range() argument [all …]
|
/fs/hfsplus/ |
D | bitmap.c | 25 __be32 *pptr, *curr, *end; in hfsplus_block_allocate() local 47 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_allocate() 49 end = pptr + ((size + 31) & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_allocate() 65 while (curr < end) { in hfsplus_block_allocate() 89 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_allocate() 91 end = pptr + ((size + 31) & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_allocate() 118 while (curr < end) { in hfsplus_block_allocate() 140 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_allocate() 169 __be32 *pptr, *curr, *end; in hfsplus_block_free() local 190 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_free() [all …]
|
/fs/nfs/blocklayout/ |
D | extent_tree.c | 178 sector_t start, sector_t end, struct list_head *tmp) in __ext_tree_remove() argument 188 if (be->be_f_offset >= end) in __ext_tree_remove() 196 if (ext_f_end(be) > end) in __ext_tree_remove() 197 len2 = ext_f_end(be) - end; in __ext_tree_remove() 209 new->be_f_offset = end; in __ext_tree_remove() 221 be->be_f_offset = end; in __ext_tree_remove() 234 while (be && ext_f_end(be) <= end) { in __ext_tree_remove() 242 if (be && be->be_f_offset < end) { in __ext_tree_remove() 243 len1 = ext_f_end(be) - end; in __ext_tree_remove() 244 be->be_f_offset = end; in __ext_tree_remove() [all …]
|
/fs/ntfs/ |
D | file.c | 321 s64 end, ll; in ntfs_prepare_file_for_write() local 381 end = (pos + iov_iter_count(from) + vol->cluster_size_mask) & in ntfs_prepare_file_for_write() 390 if (end > ll) { in ntfs_prepare_file_for_write() 398 ll = ntfs_attr_extend_allocation(ni, end, -1, pos); in ntfs_prepare_file_for_write() 402 if (end > ll) { in ntfs_prepare_file_for_write() 575 s64 bh_pos, vcn_len, end, initialized_size; in ntfs_prepare_pages_for_non_resident_write() local 633 end = pos + bytes; in ntfs_prepare_pages_for_non_resident_write() 634 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write() 676 (bh_pos < end && bh_end > end)) { in ntfs_prepare_pages_for_non_resident_write() 730 if (bh_end <= pos || bh_pos >= end) in ntfs_prepare_pages_for_non_resident_write() [all …]
|
/fs/afs/ |
D | addr_list.c | 71 const char *p, *end = text + len; in afs_parse_text_addrs() local 98 if (p == end) { in afs_parse_text_addrs() 102 p = memchr(p, ']', end - p); in afs_parse_text_addrs() 108 if (p >= end) in afs_parse_text_addrs() 112 p = memchr(p, delim, end - p); in afs_parse_text_addrs() 116 } while (p < end); in afs_parse_text_addrs() 148 q = memchr(p, ']', end - p); in afs_parse_text_addrs() 150 for (q = p; q < end; q++) in afs_parse_text_addrs() 170 if (q < end && *q == ']') in afs_parse_text_addrs() 173 if (p < end) { in afs_parse_text_addrs() [all …]
|
D | vl_list.c | 92 static struct afs_addr_list *afs_extract_vl_addrs(const u8 **_b, const u8 *end, in afs_extract_vl_addrs() argument 105 for (; nr_addrs > 0 && end - b >= nr_addrs; nr_addrs--) { in afs_extract_vl_addrs() 113 if (end - b < 4) { in afs_extract_vl_addrs() 123 if (end - b < 16) { in afs_extract_vl_addrs() 165 const u8 *b = buffer, *end = buffer + buffer_size; in afs_extract_vlserver_list() local 171 if (end - b < sizeof(*hdr) || in afs_extract_vlserver_list() 175 hdr->hdr.content, hdr->hdr.version, end - b); in afs_extract_vlserver_list() 198 while (end - b >= sizeof(bs)) { in afs_extract_vlserver_list() 213 if (end - b < bs.name_len) in afs_extract_vlserver_list() 256 addrs = afs_extract_vl_addrs(&b, end, bs.nr_addrs, bs.port); in afs_extract_vlserver_list() [all …]
|
/fs/ |
D | d_path.c | 313 char *end = buffer + buflen; in simple_dname() local 315 if (prepend(&end, &buflen, " (deleted)", 11) || in simple_dname() 316 prepend(&end, &buflen, dentry->d_name.name, dentry->d_name.len) || in simple_dname() 317 prepend(&end, &buflen, "/", 1)) in simple_dname() 318 end = ERR_PTR(-ENAMETOOLONG); in simple_dname() 319 return end; in simple_dname() 328 char *end, *retval; in __dentry_path() local 338 end = buf + buflen; in __dentry_path() 340 prepend(&end, &len, "\0", 1); in __dentry_path() 342 retval = end-1; in __dentry_path() [all …]
|
D | userfaultfd.c | 90 unsigned long end; member 791 unsigned long start, unsigned long end) in userfaultfd_remove() argument 809 ewq.msg.arg.remove.end = end; in userfaultfd_remove() 817 unsigned long start, unsigned long end) in has_unmap_ctx() argument 823 unmap_ctx->end == end) in has_unmap_ctx() 830 unsigned long start, unsigned long end, in userfaultfd_unmap_prep() argument 833 for ( ; vma && vma->vm_start < end; vma = vma->vm_next) { in userfaultfd_unmap_prep() 838 has_unmap_ctx(ctx, unmaps, start, end)) in userfaultfd_unmap_prep() 849 unmap_ctx->end = end; in userfaultfd_unmap_prep() 866 ewq.msg.arg.remove.end = ctx->end; in userfaultfd_unmap_complete() [all …]
|
/fs/hpfs/ |
D | alloc.c | 300 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "aip"))) goto end; in hpfs_alloc_if_possible() 309 end: in hpfs_alloc_if_possible() 506 secno end; in do_trim() local 509 end = start + len; in do_trim() 512 if (end > limit_end) in do_trim() 513 end = limit_end; in do_trim() 514 if (start >= end) in do_trim() 516 if (end - start < minlen) in do_trim() 518 err = sb_issue_discard(s, start, end - start, GFP_NOFS, 0); in do_trim() 521 *result += end - start; in do_trim() [all …]
|
/fs/xfs/ |
D | xfs_discard.c | 26 xfs_daddr_t end, in xfs_trim_extents() argument 97 if (dbno + dlen < start || dbno > end) { in xfs_trim_extents() 153 xfs_daddr_t start, end, minlen; in xfs_ioc_trim() local 188 end = start + BTOBBT(range.len) - 1; in xfs_ioc_trim() 190 if (end > XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks) - 1) in xfs_ioc_trim() 191 end = XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks)- 1; in xfs_ioc_trim() 194 end_agno = xfs_daddr_to_agno(mp, end); in xfs_ioc_trim() 197 error = xfs_trim_extents(mp, agno, start, end, minlen, in xfs_ioc_trim()
|
/fs/jfs/ |
D | jfs_discard.c | 71 u64 start, end, minlen; in jfs_ioc_trim() local 81 end = start + (range->len >> sb->s_blocksize_bits) - 1; in jfs_ioc_trim() 91 if (end >= bmp->db_mapsize) in jfs_ioc_trim() 92 end = bmp->db_mapsize - 1; in jfs_ioc_trim() 98 agno_end = BLKTOAG(end, JFS_SBI(ip->i_sb)); in jfs_ioc_trim()
|
/fs/ufs/ |
D | balloc.c | 249 sector_t end, i; in ufs_change_blocknr() local 261 end = count + beg; in ufs_change_blocknr() 262 last_index = end >> (PAGE_SHIFT - inode->i_blkbits); in ufs_change_blocknr() 263 for (i = beg; i < end; i = (i | mask) + 1) { in ufs_change_blocknr() 287 lblock = end & mask; in ufs_change_blocknr() 329 sector_t end = beg + n; in ufs_clear_frags() local 331 for (; beg < end; ++beg) { in ufs_clear_frags() 811 unsigned pos, want, blockmap, mask, end; in ufs_bitmap_search() local 849 for (end = result + 8; result < end; result += uspi->s_fpb) { in ufs_bitmap_search() 875 int i, start, end, forw, back; in ufs_clusteracct() local [all …]
|
/fs/reiserfs/ |
D | prints.c | 120 char * const end = buf + size; in scnprintf_item_head() local 122 p += scnprintf(p, end - p, "%s", in scnprintf_item_head() 126 p += scnprintf_le_key(p, end - p, &ih->ih_key); in scnprintf_item_head() 128 p += scnprintf(p, end - p, in scnprintf_item_head() 208 char * const end = &error_buf[sizeof(error_buf)]; in prepare_error_buf() local 214 strscpy(error_buf, "format string too long", end - error_buf); in prepare_error_buf() 221 p += vscnprintf(p, end - p, fmt1, args); in prepare_error_buf() 225 p += scnprintf_le_key(p, end - p, in prepare_error_buf() 229 p += scnprintf_cpu_key(p, end - p, in prepare_error_buf() 233 p += scnprintf_item_head(p, end - p, in prepare_error_buf() [all …]
|
D | bitmap.c | 150 int end, next; in scan_bitmap_block() local 191 for (end = *beg + 1;; end++) { in scan_bitmap_block() 192 if (end >= *beg + max || end >= boundary in scan_bitmap_block() 193 || reiserfs_test_le_bit(end, bh->b_data)) { in scan_bitmap_block() 194 next = end; in scan_bitmap_block() 203 if (unfm && is_block_in_journal(s, bmap_n, end, &next)) in scan_bitmap_block() 213 if (end - *beg >= min) { in scan_bitmap_block() 220 for (i = *beg; i < end; i++) { in scan_bitmap_block() 236 end = i; in scan_bitmap_block() 257 bi->free_count -= (end - *beg); in scan_bitmap_block() [all …]
|
/fs/proc/ |
D | task_mmu.c | 330 unsigned long start, unsigned long end, in show_vma_header_prefix() argument 336 seq_put_hex_ll(m, "-", end, 8); in show_vma_header_prefix() 357 unsigned long start, end; in show_map_vma() local 369 end = vma->vm_end; in show_map_vma() 370 show_vma_header_prefix(m, start, end, flags, pgoff, dev, ino); in show_map_vma() 564 static int smaps_pte_hole(unsigned long addr, unsigned long end, in smaps_pte_hole() argument 570 walk->vma->vm_file->f_mapping, addr, end); in smaps_pte_hole() 659 static int smaps_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, in smaps_pte_range() argument 682 for (; addr != end; pte++, addr += PAGE_SIZE) in smaps_pte_range() 765 unsigned long addr, unsigned long end, in smaps_hugetlb_range() argument [all …]
|
/fs/erofs/ |
D | namei.c | 13 const unsigned char *end; member 28 DBG_BUGON(qd->name > qd->end); in erofs_dirnamecmp() 32 while (qd->name + i < qd->end && qd->name[i] != '\0') { in erofs_dirnamecmp() 67 .end = mid >= ndirents - 1 ? in find_target_dirent() 131 dname.end = (u8 *)de + EROFS_BLKSIZ; in find_target_block_classic() 133 dname.end = (u8 *)de + in find_target_block_classic() 182 qn.end = name->name + name->len; in erofs_namei()
|