/fs/ceph/ |
D | mdsmap.c | 57 #define __decode_and_drop_type(p, end, type, bad) \ argument 59 if (*p + sizeof(type) > end) \ 64 #define __decode_and_drop_set(p, end, type, bad) \ argument 68 ceph_decode_32_safe(p, end, n, bad); \ 70 ceph_decode_need(p, end, need, bad); \ 74 #define __decode_and_drop_map(p, end, ktype, vtype, bad) \ argument 78 ceph_decode_32_safe(p, end, n, bad); \ 80 ceph_decode_need(p, end, need, bad); \ 85 static int __decode_and_drop_compat_set(void **p, void* end) in __decode_and_drop_compat_set() argument 91 ceph_decode_need(p, end, sizeof(u64) + sizeof(u32), bad); in __decode_and_drop_compat_set() [all …]
|
D | mds_client.c | 72 static int parse_reply_info_quota(void **p, void *end, in parse_reply_info_quota() argument 78 ceph_decode_8_safe(p, end, struct_v, bad); in parse_reply_info_quota() 79 ceph_decode_8_safe(p, end, struct_compat, bad); in parse_reply_info_quota() 84 ceph_decode_32_safe(p, end, struct_len, bad); in parse_reply_info_quota() 85 ceph_decode_need(p, end, struct_len, bad); in parse_reply_info_quota() 86 end = *p + struct_len; in parse_reply_info_quota() 87 ceph_decode_64_safe(p, end, info->max_bytes, bad); in parse_reply_info_quota() 88 ceph_decode_64_safe(p, end, info->max_files, bad); in parse_reply_info_quota() 89 *p = end; in parse_reply_info_quota() 98 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-tree.h | 70 u64 end; /* inclusive */ 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); 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, 124 static inline int unlock_extent(struct extent_io_tree *tree, u64 start, u64 end) in unlock_extent() argument [all …]
|
D | extent_io.c | 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 115 if (end >= PAGE_SIZE && (end % 2) == 0 && end != isize - 1) { in __btrfs_debug_check_extent_io_range() 118 caller, btrfs_ino(BTRFS_I(inode)), isize, start, end); in __btrfs_debug_check_extent_io_range() 130 u64 end; 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() 379 else if (offset > entry->end) in tree_insert() [all …]
|
D | free-space-tree.c | 196 u64 start, end; in convert_free_space_to_bitmaps() local 212 end = block_group->start + block_group->length; in convert_free_space_to_bitmaps() 214 key.objectid = end - 1; in convert_free_space_to_bitmaps() 238 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps() 239 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps() 287 while (i < end) { in convert_free_space_to_bitmaps() 292 extent_size = min(end - i, bitmap_range); in convert_free_space_to_bitmaps() 335 u64 start, end; in convert_free_space_to_extents() local 351 end = block_group->start + block_group->length; in convert_free_space_to_extents() 353 key.objectid = end - 1; in convert_free_space_to_extents() [all …]
|
D | file.c | 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() 533 if (end == (u64)-1) { in btrfs_drop_extent_cache() 677 struct btrfs_path *path, u64 start, u64 end, in __btrfs_drop_extents() argument 708 btrfs_drop_extent_cache(inode, start, end - 1, 0); in __btrfs_drop_extents() 755 if (key.type > BTRFS_EXTENT_DATA_KEY || key.offset >= end) in __btrfs_drop_extents() 808 if (start > key.offset && end < extent_end) { in __btrfs_drop_extents() 864 if (start <= key.offset && end < extent_end) { in __btrfs_drop_extents() 871 new_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/proc/ |
D | bootconfig.c | 23 #define rest(dst, end) ((end) > (dst) ? (end) - (dst) : 0) argument 29 char *key, *end = dst + size; in copy_xbc_key_value_list() local 42 ret = snprintf(dst, rest(dst, end), "%s = ", key); in copy_xbc_key_value_list() 53 ret = snprintf(dst, rest(dst, end), "%c%s%c%s", in copy_xbc_key_value_list() 60 ret = snprintf(dst, rest(dst, end), "\"\"\n"); in copy_xbc_key_value_list() 69 return ret < 0 ? ret : dst - (end - size); in copy_xbc_key_value_list()
|
/fs/ext4/ |
D | extents_status.c | 150 ext4_lblk_t end, int *reserved, 261 ext4_lblk_t lblk, ext4_lblk_t end, in __es_find_extent_range() argument 269 WARN_ON(end < lblk); in __es_find_extent_range() 289 if (es1->es_lblk > end) { in __es_find_extent_range() 312 ext4_lblk_t lblk, ext4_lblk_t end, in ext4_es_find_extent_range() argument 321 __es_find_extent_range(inode, matching_fn, lblk, end, es); in ext4_es_find_extent_range() 344 ext4_lblk_t start, ext4_lblk_t end) in __es_scan_range() argument 348 __es_find_extent_range(inode, matching_fn, start, end, &es); in __es_scan_range() 354 else if (start <= es.es_lblk && es.es_lblk <= end) in __es_scan_range() 364 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/ |
D | namespace.c | 55 char *end; in nfs_path() local 65 end = buffer+buflen; in nfs_path() 66 *--end = '\0'; in nfs_path() 79 end -= namelen; in nfs_path() 80 memcpy(end, dentry->d_name.name, namelen); in nfs_path() 81 *--end = '/'; in nfs_path() 90 if ((flags & NFS_PATH_CANONICAL) && *end != '/') { in nfs_path() 96 *--end = '/'; in nfs_path() 98 *p = end; in nfs_path() 104 return end; in nfs_path() [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 | 93 static struct afs_addr_list *afs_extract_vl_addrs(const u8 **_b, const u8 *end, in afs_extract_vl_addrs() argument 106 for (; nr_addrs > 0 && end - b >= nr_addrs; nr_addrs--) { in afs_extract_vl_addrs() 114 if (end - b < 4) { in afs_extract_vl_addrs() 124 if (end - b < 16) { in afs_extract_vl_addrs() 166 const u8 *b = buffer, *end = buffer + buffer_size; in afs_extract_vlserver_list() local 172 if (end - b < sizeof(*hdr) || in afs_extract_vlserver_list() 176 hdr->hdr.content, hdr->hdr.version, end - b); in afs_extract_vlserver_list() 199 while (end - b >= sizeof(bs)) { in afs_extract_vlserver_list() 214 if (end - b < bs.name_len) in afs_extract_vlserver_list() 257 addrs = afs_extract_vl_addrs(&b, end, bs.nr_addrs, bs.port); in afs_extract_vlserver_list() [all …]
|
/fs/ |
D | d_path.c | 317 char *end = buffer + buflen; in simple_dname() local 319 if (prepend(&end, &buflen, " (deleted)", 11) || in simple_dname() 320 prepend(&end, &buflen, dentry->d_name.name, dentry->d_name.len) || in simple_dname() 321 prepend(&end, &buflen, "/", 1)) in simple_dname() 322 end = ERR_PTR(-ENAMETOOLONG); in simple_dname() 323 return end; in simple_dname() 332 char *end, *retval; in __dentry_path() local 342 end = buf + buflen; in __dentry_path() 344 prepend(&end, &len, "\0", 1); in __dentry_path() 346 retval = end-1; in __dentry_path() [all …]
|
/fs/iomap/ |
D | apply.c | 30 u64 end; in iomap_apply() local 66 end = iomap.offset + iomap.length; in iomap_apply() 68 end = min(end, srcmap.offset + srcmap.length); in iomap_apply() 69 if (pos + length > end) in iomap_apply() 70 length = end - pos; in iomap_apply()
|
/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 | 27 xfs_daddr_t end, in xfs_trim_extents() argument 102 if (dbno + dlen < start || dbno > end) { in xfs_trim_extents() 158 xfs_daddr_t start, end, minlen; in xfs_ioc_trim() local 193 end = start + BTOBBT(range.len) - 1; in xfs_ioc_trim() 195 if (end > XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks) - 1) in xfs_ioc_trim() 196 end = XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks)- 1; in xfs_ioc_trim() 199 end_agno = xfs_daddr_to_agno(mp, end); in xfs_ioc_trim() 202 error = xfs_trim_extents(mp, agno, start, end, minlen, in xfs_ioc_trim()
|
/fs/squashfs/ |
D | xattr_id.c | 65 u64 start, end; in squashfs_read_xattr_id_table() local 90 end = msblk->bytes_used; in squashfs_read_xattr_id_table() 92 if (len != (end - start)) in squashfs_read_xattr_id_table() 110 end = le64_to_cpu(table[n + 1]); in squashfs_read_xattr_id_table() 112 if (start >= end || (end - start) > in squashfs_read_xattr_id_table()
|
/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/adfs/ |
D | dir_fplus.c | 74 unsigned int end, bs, bi, i; in adfs_fplus_checkbyte() local 78 end = adfs_fplus_offset(h, le32_to_cpu(h->bigdirentries)) + in adfs_fplus_checkbyte() 82 for (dircheck = 0, bi = 0; end; bi++) { in adfs_fplus_checkbyte() 85 if (bs > end) in adfs_fplus_checkbyte() 86 bs = end; in adfs_fplus_checkbyte() 91 end -= bs; in adfs_fplus_checkbyte() 234 int offset, end, ret; in adfs_fplus_update() local 237 end = adfs_fplus_offset(h, le32_to_cpu(h->bigdirentries)); in adfs_fplus_update() 241 if (offset >= end) { in adfs_fplus_update()
|
/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 …]
|