/fs/cifs/ |
D | asn1.c | 94 unsigned char *end; /* Octet after last octet */ member 109 ctx->end = buf + len; in asn1_open() 117 if (ctx->pointer >= ctx->end) { in asn1_octet_decode() 191 if (*len > ctx->end - ctx->pointer) in asn1_length_decode() 473 unsigned char *end; in decode_negTokenInit() local 488 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { in decode_negTokenInit() 498 rc = asn1_header_decode(&ctx, &end, &cls, &con, &tag); in decode_negTokenInit() 502 rc = asn1_oid_decode(&ctx, end, &oid, &oidlen); in decode_negTokenInit() 518 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { in decode_negTokenInit() 525 cls, con, tag, end, *end)); in decode_negTokenInit() [all …]
|
/fs/btrfs/ |
D | extent_io.h | 43 u64 start, u64 end, int *page_started, 45 int (*writepage_start_hook)(struct page *page, u64 start, u64 end); 46 int (*writepage_io_hook)(struct page *page, u64 start, u64 end); 51 int (*readpage_io_hook)(struct page *page, u64 start, u64 end); 53 u64 start, u64 end, 56 u64 start, u64 end, 58 int (*readpage_end_io_hook)(struct page *page, u64 start, u64 end, 60 int (*writepage_end_io_hook)(struct page *page, u64 start, u64 end, 62 int (*set_bit_hook)(struct inode *inode, u64 start, u64 end, 64 int (*clear_bit_hook)(struct inode *inode, u64 start, u64 end, [all …]
|
D | extent_io.c | 41 u64 end; member 86 (unsigned long long)state->end, in extent_io_exit() 173 else if (offset > entry->end) in tree_insert() 203 else if (offset > entry->end) in __etree_search() 211 while (prev && offset > prev_entry->end) { in __etree_search() 307 if (other->end == state->start - 1 && in merge_state() 318 if (other->start == state->end + 1 && in merge_state() 335 state->end, state->state, bits); in set_state_cb() 345 state->end, state->state, bits); in clear_state_cb() 360 struct extent_state *state, u64 start, u64 end, in insert_state() argument [all …]
|
D | file.c | 166 int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end, in btrfs_drop_extent_cache() argument 173 u64 len = end - start + 1; in btrfs_drop_extent_cache() 179 WARN_ON(end < start); in btrfs_drop_extent_cache() 180 if (end == (u64)-1) { in btrfs_drop_extent_cache() 366 u64 start, u64 end, u64 inline_limit, u64 *hint_byte) in btrfs_drop_extents() argument 369 u64 locked_end = end; in btrfs_drop_extents() 395 btrfs_drop_extent_cache(inode, start, end - 1, 0); in btrfs_drop_extents() 430 key.offset >= end) { in btrfs_drop_extents() 490 if (end <= extent_end && start >= key.offset && found_inline) in btrfs_drop_extents() 501 if (end < extent_end && end >= key.offset) { in btrfs_drop_extents() [all …]
|
D | ordered-data.c | 384 u64 end = start + entry->len - 1; in btrfs_start_ordered_extent() local 391 btrfs_fdatawrite_range(inode->i_mapping, start, end, WB_SYNC_ALL); in btrfs_start_ordered_extent() 403 u64 end; in btrfs_wait_ordered_range() local 432 end = orig_end; in btrfs_wait_ordered_range() 434 ordered = btrfs_lookup_first_ordered_extent(inode, end); in btrfs_wait_ordered_range() 446 end = ordered->file_offset; in btrfs_wait_ordered_range() 448 if (end == 0 || end == start) in btrfs_wait_ordered_range() 450 end--; in btrfs_wait_ordered_range() 664 loff_t end, int sync_mode) in btrfs_fdatawrite_range() argument 670 .range_end = end, in btrfs_fdatawrite_range() [all …]
|
D | inode.c | 88 static int btrfs_finish_ordered_io(struct inode *inode, u64 start, u64 end); 91 u64 start, u64 end, int *page_started, 209 struct inode *inode, u64 start, u64 end, in cow_file_range_inline() argument 214 u64 actual_end = min(end + 1, isize); in cow_file_range_inline() 216 u64 aligned_end = (end + root->sectorsize - 1) & in cow_file_range_inline() 230 end + 1 < isize || in cow_file_range_inline() 263 u64 end; member 304 u64 start, u64 end, in compress_file_range() argument 329 actual_end = min_t(u64, isize, end + 1); in compress_file_range() 332 nr_pages = (end >> PAGE_CACHE_SHIFT) - (start >> PAGE_CACHE_SHIFT) + 1; in compress_file_range() [all …]
|
/fs/hfsplus/ |
D | bitmap.c | 22 __be32 *pptr, *curr, *end; in hfsplus_block_allocate() local 44 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_allocate() 46 end = pptr + ((size + 31) & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_allocate() 62 while (curr < end) { in hfsplus_block_allocate() 86 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_allocate() 88 end = pptr + ((size + 31) & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_allocate() 115 while (curr < end) { in hfsplus_block_allocate() 137 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_allocate() 165 __be32 *pptr, *curr, *end; in hfsplus_block_free() local 184 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_free() [all …]
|
/fs/ntfs/ |
D | file.c | 360 const char __user *end; in ntfs_fault_in_pages_readable() local 364 end = (const char __user*)PAGE_ALIGN((unsigned long)uaddr + bytes); in ntfs_fault_in_pages_readable() 366 while (!__get_user(c, uaddr) && (uaddr += PAGE_SIZE, uaddr < end)) in ntfs_fault_in_pages_readable() 496 s64 bh_pos, vcn_len, end, initialized_size; in ntfs_prepare_pages_for_non_resident_write() local 554 end = pos + bytes; in ntfs_prepare_pages_for_non_resident_write() 555 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write() 597 (bh_pos < end && bh_end > end)) { in ntfs_prepare_pages_for_non_resident_write() 652 if (bh_end <= pos || bh_pos >= end) in ntfs_prepare_pages_for_non_resident_write() 667 if (!buffer_uptodate(bh) && bh_pos < end && in ntfs_prepare_pages_for_non_resident_write() 670 bh_end > end)) { in ntfs_prepare_pages_for_non_resident_write() [all …]
|
/fs/nfs/ |
D | namespace.c | 51 char *end = buffer+buflen; in nfs_path() local 54 *--end = '\0'; in nfs_path() 62 end -= namelen; in nfs_path() 63 memcpy(end, dentry->d_name.name, namelen); in nfs_path() 64 *--end = '/'; in nfs_path() 75 end -= namelen; in nfs_path() 76 memcpy(end, base, namelen); in nfs_path() 77 return end; in nfs_path()
|
D | nfs4namespace.c | 31 char *end = buffer + buflen; in nfs4_pathname_string() local 34 *--end = '\0'; in nfs4_pathname_string() 43 end -= component->len; in nfs4_pathname_string() 44 memcpy(end, component->data, component->len); in nfs4_pathname_string() 45 *--end = '/'; in nfs4_pathname_string() 47 return end; in nfs4_pathname_string()
|
/fs/reiserfs/ |
D | bitmap.c | 143 int end, next; in scan_bitmap_block() local 186 for (end = *beg + 1;; end++) { in scan_bitmap_block() 187 if (end >= *beg + max || end >= boundary in scan_bitmap_block() 188 || reiserfs_test_le_bit(end, bh->b_data)) { in scan_bitmap_block() 189 next = end; in scan_bitmap_block() 194 if (unfm && is_block_in_journal(s, bmap_n, end, &next)) in scan_bitmap_block() 200 if (end - *beg >= min) { /* it seems we have found window of proper size */ in scan_bitmap_block() 204 for (i = *beg; i < end; i++) { in scan_bitmap_block() 213 end = i; in scan_bitmap_block() 226 bi->free_count -= (end - *beg); in scan_bitmap_block() [all …]
|
/fs/proc/ |
D | task_mmu.c | 320 static int smaps_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, in smaps_pte_range() argument 331 for (; addr != end; pte++, addr += PAGE_SIZE) { in smaps_pte_range() 439 unsigned long end, struct mm_walk *walk) in clear_refs_pte_range() argument 447 for (; addr != end; pte++, addr += PAGE_SIZE) { in clear_refs_pte_range() 469 char buffer[PROC_NUMBUF], *end; in clear_refs_write() local 478 if (!simple_strtol(buffer, &end, 0)) in clear_refs_write() 480 if (*end == '\n') in clear_refs_write() 481 end++; in clear_refs_write() 503 if (end - buffer == 0) in clear_refs_write() 505 return end - buffer; in clear_refs_write() [all …]
|
/fs/ufs/ |
D | balloc.c | 258 sector_t end, i; in ufs_change_blocknr() local 270 end = count + beg; in ufs_change_blocknr() 271 last_index = end >> (PAGE_CACHE_SHIFT - inode->i_blkbits); in ufs_change_blocknr() 272 for (i = beg; i < end; i = (i | mask) + 1) { in ufs_change_blocknr() 296 lblock = end & mask; in ufs_change_blocknr() 339 sector_t end = beg + n; in ufs_clear_frags() local 341 for (; beg < end; ++beg) { in ufs_clear_frags() 825 unsigned pos, want, blockmap, mask, end; in ufs_bitmap_search() local 866 for (end = result + 8; result < end; result += uspi->s_fpb) { in ufs_bitmap_search() 892 int i, start, end, forw, back; in ufs_clusteracct() local [all …]
|
/fs/jffs2/ |
D | gc.c | 33 uint32_t start, uint32_t end); 36 uint32_t start, uint32_t end); 451 uint32_t start = 0, end = 0, nrfrags = 0; in jffs2_garbage_collect_live() local 485 end = frag->ofs + frag->size; in jffs2_garbage_collect_live() 503 if((start >> PAGE_CACHE_SHIFT) < ((end-1) >> PAGE_CACHE_SHIFT)) { in jffs2_garbage_collect_live() 505 ret = jffs2_garbage_collect_hole(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live() 508 ret = jffs2_garbage_collect_dnode(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live() 943 uint32_t start, uint32_t end) in jffs2_garbage_collect_hole() argument 952 f->inocache->ino, start, end)); in jffs2_garbage_collect_hole() 985 start, end, f->inocache->ino); in jffs2_garbage_collect_hole() [all …]
|
D | read.c | 156 uint32_t end = offset + len; in jffs2_read_inode_range() local 168 while(offset < end) { in jffs2_read_inode_range() 169 D2(printk(KERN_DEBUG "jffs2_read_inode_range: offset %d, end %d\n", offset, end)); in jffs2_read_inode_range() 171 uint32_t holesize = end - offset; in jffs2_read_inode_range() 182 uint32_t holeend = min(end, frag->ofs + frag->size); in jffs2_read_inode_range() 194 readlen = min(frag->size - fragofs, end - offset); in jffs2_read_inode_range()
|
D | wbuf.c | 275 uint32_t start, end, ofs, len; in jffs2_wbuf_recover() local 317 end = ref_offset(jeb->last_node); in jffs2_wbuf_recover() 325 start, end, end - start, nr_refile); in jffs2_wbuf_recover() 332 buf = kmalloc(end - start, GFP_KERNEL); in jffs2_wbuf_recover() 369 start, end, end - start, nr_refile); in jffs2_wbuf_recover() 373 memcpy(buf + (c->wbuf_ofs - start), c->wbuf, end - c->wbuf_ofs); in jffs2_wbuf_recover() 380 ret = jffs2_reserve_space_gc(c, end-start, &len, JFFS2_SUMMARY_NOSUM_SIZE); in jffs2_wbuf_recover() 399 if (end-start >= c->wbuf_pagesize) { in jffs2_wbuf_recover() 406 uint32_t towrite = (end-start) - ((end-start)%c->wbuf_pagesize); in jffs2_wbuf_recover() 436 c->wbuf_len = (end - start) - towrite; in jffs2_wbuf_recover() [all …]
|
/fs/afs/ |
D | write.c | 470 pgoff_t index, pgoff_t end, pgoff_t *_next) in afs_writepages_region() argument 477 _enter(",,%lx,%lx,", index, end); in afs_writepages_region() 487 if (page->index > end) { in afs_writepages_region() 538 } while (index < end && wbc->nr_to_write > 0); in afs_writepages_region() 552 pgoff_t start, end, next; in afs_writepages() local 565 end = -1; in afs_writepages() 566 ret = afs_writepages_region(mapping, wbc, start, end, &next); in afs_writepages() 573 end = (pgoff_t)(LLONG_MAX >> PAGE_CACHE_SHIFT); in afs_writepages() 574 ret = afs_writepages_region(mapping, wbc, 0, end, &next); in afs_writepages() 579 end = wbc->range_end >> PAGE_CACHE_SHIFT; in afs_writepages() [all …]
|
/fs/ |
D | xattr_acl.c | 21 posix_acl_xattr_entry *entry = (posix_acl_xattr_entry *)(header+1), *end; in posix_acl_from_xattr() local 44 for (end = entry + count; entry != end; acl_e++, entry++) { in posix_acl_from_xattr()
|
/fs/ext4/ |
D | xattr.c | 147 ext4_xattr_check_names(struct ext4_xattr_entry *entry, void *end) in ext4_xattr_check_names() argument 151 if ((void *)next >= end) in ext4_xattr_check_names() 267 void *end; in ext4_xattr_ibody_get() local 278 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_get() 279 error = ext4_xattr_check_names(entry, end); in ext4_xattr_ibody_get() 283 end - (void *)entry, 0); in ext4_xattr_ibody_get() 393 void *end; in ext4_xattr_ibody_list() local 403 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_list() 404 error = ext4_xattr_check_names(IFIRST(header), end); in ext4_xattr_ibody_list() 533 void *end; member [all …]
|
D | resize.c | 29 ext4_fsblk_t end = start + input->blocks_count; in verify_group_input() local 63 else if (!(bh = sb_bread(sb, end - 1))) in verify_group_input() 66 end - 1); in verify_group_input() 67 else if (outside(input->block_bitmap, start, end)) in verify_group_input() 71 else if (outside(input->inode_bitmap, start, end)) in verify_group_input() 75 else if (outside(input->inode_table, start, end) || in verify_group_input() 76 outside(itend - 1, start, end)) in verify_group_input() 357 const ext4_group_t end = EXT4_SB(sb)->s_groups_count; in verify_reserved_gdb() local 365 while ((grp = ext4_list_backups(sb, &three, &five, &seven)) < end) { in verify_reserved_gdb() 547 __le32 *data, *end; in reserve_backup_gdb() local [all …]
|
/fs/ubifs/ |
D | tnc_misc.c | 139 int beg = 0, end = znode->child_cnt, uninitialized_var(mid); in ubifs_search_zbranch() local 143 ubifs_assert(end > beg); in ubifs_search_zbranch() 145 while (end > beg) { in ubifs_search_zbranch() 146 mid = (beg + end) >> 1; in ubifs_search_zbranch() 151 end = mid; in ubifs_search_zbranch() 158 *n = end - 1; in ubifs_search_zbranch()
|
/fs/ext2/ |
D | xattr.c | 155 char *end; in ext2_xattr_get() local 174 end = bh->b_data + bh->b_size; in ext2_xattr_get() 193 if ((char *)next >= end) in ext2_xattr_get() 205 if ((char *)next >= end) in ext2_xattr_get() 256 char *end; in ext2_xattr_list() local 274 end = bh->b_data + bh->b_size; in ext2_xattr_list() 289 if ((char *)next >= end) in ext2_xattr_list() 372 char *end; in ext2_xattr_set() local 407 end = bh->b_data + bh->b_size; in ext2_xattr_set() 420 if ((char *)next >= end) in ext2_xattr_set() [all …]
|
/fs/ext3/ |
D | xattr.c | 154 ext3_xattr_check_names(struct ext3_xattr_entry *entry, void *end) in ext3_xattr_check_names() argument 158 if ((void *)next >= end) in ext3_xattr_check_names() 274 void *end; in ext3_xattr_ibody_get() local 285 end = (void *)raw_inode + EXT3_SB(inode->i_sb)->s_inode_size; in ext3_xattr_ibody_get() 286 error = ext3_xattr_check_names(entry, end); in ext3_xattr_ibody_get() 290 end - (void *)entry, 0); in ext3_xattr_ibody_get() 400 void *end; in ext3_xattr_ibody_list() local 410 end = (void *)raw_inode + EXT3_SB(inode->i_sb)->s_inode_size; in ext3_xattr_ibody_list() 411 error = ext3_xattr_check_names(IFIRST(header), end); in ext3_xattr_ibody_list() 523 void *end; member [all …]
|
D | resize.c | 29 ext3_fsblk_t end = start + input->blocks_count; in verify_group_input() local 63 else if (!(bh = sb_bread(sb, end - 1))) in verify_group_input() 66 end - 1); in verify_group_input() 67 else if (outside(input->block_bitmap, start, end)) in verify_group_input() 71 else if (outside(input->inode_bitmap, start, end)) in verify_group_input() 75 else if (outside(input->inode_table, start, end) || in verify_group_input() 76 outside(itend - 1, start, end)) in verify_group_input() 379 const unsigned long end = EXT3_SB(sb)->s_groups_count; in verify_reserved_gdb() local 387 while ((grp = ext3_list_backups(sb, &three, &five, &seven)) < end) { in verify_reserved_gdb() 566 __le32 *data, *end; in reserve_backup_gdb() local [all …]
|
/fs/ocfs2/ |
D | file.c | 1214 u64 end = start + len; in ocfs2_allocate_unwritten_extents() local 1228 if (ocfs2_size_fits_inline_data(di_bh, end)) in ocfs2_allocate_unwritten_extents() 1295 loff_t start, end; in ocfs2_truncate_cluster_pages() local 1299 end = byte_start + byte_len; in ocfs2_truncate_cluster_pages() 1300 end = end & ~(osb->s_clustersize - 1); in ocfs2_truncate_cluster_pages() 1302 if (start < end) { in ocfs2_truncate_cluster_pages() 1303 unmap_mapping_range(mapping, start, end - start, 0); in ocfs2_truncate_cluster_pages() 1304 truncate_inode_pages_range(mapping, start, end - 1); in ocfs2_truncate_cluster_pages() 1312 u64 tmpend, end = start + len; in ocfs2_zero_partial_clusters() local 1325 (unsigned long long)start, (unsigned long long)end); in ocfs2_zero_partial_clusters() [all …]
|