Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/fs/ceph/
Dmdsmap.c57 #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 …]
Dmds_client.c73 static int parse_reply_info_quota(void **p, void *end, in parse_reply_info_quota() argument
79 ceph_decode_8_safe(p, end, struct_v, bad); in parse_reply_info_quota()
80 ceph_decode_8_safe(p, end, struct_compat, bad); in parse_reply_info_quota()
85 ceph_decode_32_safe(p, end, struct_len, bad); in parse_reply_info_quota()
86 ceph_decode_need(p, end, struct_len, bad); in parse_reply_info_quota()
87 end = *p + struct_len; in parse_reply_info_quota()
88 ceph_decode_64_safe(p, end, info->max_bytes, bad); in parse_reply_info_quota()
89 ceph_decode_64_safe(p, end, info->max_files, bad); in parse_reply_info_quota()
90 *p = end; in parse_reply_info_quota()
99 static int parse_reply_info_in(void **p, void *end, in parse_reply_info_in() argument
[all …]
/fs/btrfs/tests/
Dextent-io-tests.c19 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/
Dextent-io-tree.h84 u64 end; /* inclusive */ member
107 int lock_extent_bits(struct extent_io_tree *tree, u64 start, u64 end,
110 static inline int lock_extent(struct extent_io_tree *tree, u64 start, u64 end) in lock_extent() argument
112 return lock_extent_bits(tree, start, end, NULL); in lock_extent()
115 int try_lock_extent(struct extent_io_tree *tree, u64 start, u64 end);
125 int test_range_bit(struct extent_io_tree *tree, u64 start, u64 end,
127 int clear_record_extent_bits(struct extent_io_tree *tree, u64 start, u64 end,
129 int clear_extent_bit(struct extent_io_tree *tree, u64 start, u64 end,
132 int __clear_extent_bit(struct extent_io_tree *tree, u64 start, u64 end,
137 static inline int unlock_extent(struct extent_io_tree *tree, u64 start, u64 end) in unlock_extent() argument
[all …]
Dextent_io.c100 state->start, state->end, state->state, in btrfs_extent_state_leak_debug_check()
108 #define btrfs_debug_check_extent_io_range(tree, start, end) \ argument
109 __btrfs_debug_check_extent_io_range(__func__, (tree), (start), (end))
111 struct extent_io_tree *tree, u64 start, u64 end) in __btrfs_debug_check_extent_io_range() argument
120 if (end >= PAGE_SIZE && (end % 2) == 0 && end != isize - 1) { in __btrfs_debug_check_extent_io_range()
123 caller, btrfs_ino(BTRFS_I(inode)), isize, start, end); in __btrfs_debug_check_extent_io_range()
135 u64 end; member
162 changeset->bytes_changed += state->end - state->start + 1; in add_extent_changeset()
163 ret = ulist_add(&changeset->range_changed, state->start, state->end, in add_extent_changeset()
389 else if (offset > entry->end) in tree_insert()
[all …]
Dfree-space-tree.c197 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()
334 u64 start, end; in convert_free_space_to_extents() local
349 end = block_group->start + block_group->length; in convert_free_space_to_extents()
351 key.objectid = end - 1; in convert_free_space_to_extents()
[all …]
Dfile.c525 void btrfs_drop_extent_cache(struct btrfs_inode *inode, u64 start, u64 end, in btrfs_drop_extent_cache() argument
532 u64 len = end - start + 1; in btrfs_drop_extent_cache()
540 WARN_ON(end < start); in btrfs_drop_extent_cache()
541 if (end == (u64)-1) { in btrfs_drop_extent_cache()
732 btrfs_drop_extent_cache(inode, args->start, args->end - 1, 0); in btrfs_drop_extents()
779 if (key.type > BTRFS_EXTENT_DATA_KEY || key.offset >= args->end) in btrfs_drop_extents()
832 if (args->start > key.offset && args->end < extent_end) { in btrfs_drop_extents()
892 if (args->start <= key.offset && args->end < extent_end) { in btrfs_drop_extents()
899 new_key.offset = args->end; in btrfs_drop_extents()
902 extent_offset += args->end - key.offset; in btrfs_drop_extents()
[all …]
/fs/ntfs3/lib/
Ddecompress_common.h69 const u8 *end; member
79 is->end = is->next + size; in init_input_bitstream()
91 if (is->end - is->next >= 2) { in bitstream_ensure_bits()
146 if (unlikely(is->end == is->next)) in bitstream_read_byte()
157 if (unlikely(is->end - is->next < 2)) in bitstream_read_u16()
170 if (unlikely(is->end - is->next < 4)) in bitstream_read_u32()
184 if ((size_t)(is->end - is->next) < count) in bitstream_read_bytes()
273 u8 * const end = dst + length; in lz_copy() local
275 if (bufend - end >= (ptrdiff_t)(WORDBYTES - 1)) { in lz_copy()
291 if (dst < end) { in lz_copy()
[all …]
/fs/proc/
Dbootconfig.c23 #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/
Dextents_status.c150 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/
Dbitmap.c25 __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/
Dnamespace.c55 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/
Dextent_tree.c178 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/
Dfile.c321 s64 end, ll; in ntfs_prepare_file_for_write() local
378 end = (pos + iov_iter_count(from) + vol->cluster_size_mask) & in ntfs_prepare_file_for_write()
387 if (end > ll) { in ntfs_prepare_file_for_write()
395 ll = ntfs_attr_extend_allocation(ni, end, -1, pos); in ntfs_prepare_file_for_write()
399 if (end > ll) { in ntfs_prepare_file_for_write()
572 s64 bh_pos, vcn_len, end, initialized_size; in ntfs_prepare_pages_for_non_resident_write() local
630 end = pos + bytes; in ntfs_prepare_pages_for_non_resident_write()
631 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
673 (bh_pos < end && bh_end > end)) { in ntfs_prepare_pages_for_non_resident_write()
727 if (bh_end <= pos || bh_pos >= end) in ntfs_prepare_pages_for_non_resident_write()
[all …]
/fs/afs/
Daddr_list.c71 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 …]
Dvl_list.c86 static struct afs_addr_list *afs_extract_vl_addrs(const u8 **_b, const u8 *end, in afs_extract_vl_addrs() argument
99 for (; nr_addrs > 0 && end - b >= nr_addrs; nr_addrs--) { in afs_extract_vl_addrs()
107 if (end - b < 4) { in afs_extract_vl_addrs()
117 if (end - b < 16) { in afs_extract_vl_addrs()
159 const u8 *b = buffer, *end = buffer + buffer_size; in afs_extract_vlserver_list() local
165 if (end - b < sizeof(*hdr) || in afs_extract_vlserver_list()
169 hdr->hdr.content, hdr->hdr.version, end - b); in afs_extract_vlserver_list()
192 while (end - b >= sizeof(bs)) { in afs_extract_vlserver_list()
207 if (end - b < bs.name_len) in afs_extract_vlserver_list()
250 addrs = afs_extract_vl_addrs(&b, end, bs.nr_addrs, bs.port); in afs_extract_vlserver_list()
[all …]
/fs/hpfs/
Dalloc.c300 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/
Dxfs_discard.c27 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/
Dxattr_id.c65 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/
Djfs_discard.c71 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/
Dballoc.c249 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/
Ddir_fplus.c74 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/
Dprints.c120 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 …]
Dbitmap.c150 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/
Duserfaultfd.c86 unsigned long end; member
793 unsigned long start, unsigned long end) in userfaultfd_remove() argument
812 ewq.msg.arg.remove.end = end; in userfaultfd_remove()
820 unsigned long start, unsigned long end) in has_unmap_ctx() argument
826 unmap_ctx->end == end) in has_unmap_ctx()
833 unsigned long start, unsigned long end, in userfaultfd_unmap_prep() argument
836 for ( ; vma && vma->vm_start < end; vma = vma->vm_next) { in userfaultfd_unmap_prep()
843 has_unmap_ctx(ctx, unmaps, start, end)) in userfaultfd_unmap_prep()
854 unmap_ctx->end = end; in userfaultfd_unmap_prep()
871 ewq.msg.arg.remove.end = ctx->end; in userfaultfd_unmap_complete()
[all …]

12345678910>>...13