Home
last modified time | relevance | path

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

1234567891011

/fs/btrfs/tests/
Dextent-io-tests.c28 static noinline int process_page_range(struct inode *inode, u64 start, u64 end, in process_page_range() argument
34 unsigned long end_index = end >> PAGE_CACHE_SHIFT; in process_page_range()
59 …printk(KERN_ERR "stuck in a loop, start %Lu, end %Lu, nr_pages %lu, ret %d\n", start, end, nr_page… in process_page_range()
75 u64 start, end, test_start; in test_find_delalloc() local
114 end = 0; in test_find_delalloc()
116 &end, max_bytes); in test_find_delalloc()
121 if (start != 0 || end != 4095) { in test_find_delalloc()
123 start, end); in test_find_delalloc()
126 unlock_extent(&tmp, start, end); in test_find_delalloc()
145 end = 0; in test_find_delalloc()
[all …]
/fs/btrfs/
Dextent_io.h71 u64 start, u64 end, int *page_started,
73 int (*writepage_start_hook)(struct page *page, u64 start, u64 end);
74 int (*writepage_io_hook)(struct page *page, u64 start, u64 end);
81 struct page *page, u64 start, u64 end,
83 int (*writepage_end_io_hook)(struct page *page, u64 start, u64 end,
107 u64 end; /* inclusive */ member
202 int lock_extent(struct extent_io_tree *tree, u64 start, u64 end);
203 int lock_extent_bits(struct extent_io_tree *tree, u64 start, u64 end,
205 int unlock_extent(struct extent_io_tree *tree, u64 start, u64 end);
206 int unlock_extent_cached(struct extent_io_tree *tree, u64 start, u64 end,
[all …]
Dextent_io.c68 state->start, state->end, state->state, in btrfs_leak_debug_check()
85 #define btrfs_debug_check_extent_io_range(tree, start, end) \ argument
86 __btrfs_debug_check_extent_io_range(__func__, (tree), (start), (end))
88 struct extent_io_tree *tree, u64 start, u64 end) in __btrfs_debug_check_extent_io_range() argument
98 if (end >= PAGE_SIZE && (end % 2) == 0 && end != isize - 1) { in __btrfs_debug_check_extent_io_range()
101 caller, btrfs_ino(inode), isize, start, end); in __btrfs_debug_check_extent_io_range()
115 u64 end; member
146 changeset->bytes_changed += state->end - state->start + 1; in add_extent_changeset()
147 ret = ulist_add(changeset->range_changed, state->start, state->end, in add_extent_changeset()
280 else if (offset > entry->end) in tree_insert()
[all …]
Dfile.c531 void btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end, in btrfs_drop_extent_cache() argument
538 u64 len = end - start + 1; in btrfs_drop_extent_cache()
546 WARN_ON(end < start); in btrfs_drop_extent_cache()
547 if (end == (u64)-1) { in btrfs_drop_extent_cache()
693 struct btrfs_path *path, u64 start, u64 end, in __btrfs_drop_extents() argument
720 btrfs_drop_extent_cache(inode, start, end - 1, 0); in __btrfs_drop_extents()
768 if (key.type > BTRFS_EXTENT_DATA_KEY || key.offset >= end) in __btrfs_drop_extents()
820 if (start > key.offset && end < extent_end) { in __btrfs_drop_extents()
867 if (start <= key.offset && end < extent_end) { in __btrfs_drop_extents()
874 new_key.offset = end; in __btrfs_drop_extents()
[all …]
/fs/cifs/
Dasn1.c97 unsigned char *end; /* Octet after last octet */ member
112 ctx->end = buf + len; in asn1_open()
120 if (ctx->pointer >= ctx->end) { in asn1_octet_decode()
134 if (ctx->pointer >= ctx->end) {
216 if (*len > ctx->end - ctx->pointer) in asn1_length_decode()
498 unsigned char *end; in decode_negTokenInit() local
508 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { in decode_negTokenInit()
518 rc = asn1_header_decode(&ctx, &end, &cls, &con, &tag); in decode_negTokenInit()
522 rc = asn1_oid_decode(&ctx, end, &oid, &oidlen); in decode_negTokenInit()
539 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { in decode_negTokenInit()
[all …]
/fs/nfs/
Dnamespace.c53 char *end; in nfs_path() local
63 end = buffer+buflen; in nfs_path()
64 *--end = '\0'; in nfs_path()
77 end -= namelen; in nfs_path()
78 memcpy(end, dentry->d_name.name, namelen); in nfs_path()
79 *--end = '/'; in nfs_path()
88 if ((flags & NFS_PATH_CANONICAL) && *end != '/') { in nfs_path()
94 *--end = '/'; in nfs_path()
96 *p = end; in nfs_path()
102 return end; in nfs_path()
[all …]
Dnfs4namespace.c35 char *end = buffer + buflen; in nfs4_pathname_string() local
38 *--end = '\0'; in nfs4_pathname_string()
47 end -= component->len; in nfs4_pathname_string()
48 memcpy(end, component->data, component->len); in nfs4_pathname_string()
49 *--end = '/'; in nfs4_pathname_string()
51 return end; in nfs4_pathname_string()
62 static char *nfs_path_component(const char *nfspath, const char *end) in nfs_path_component() argument
69 if (p != NULL && ++p < end && *p == ':') in nfs_path_component()
74 if (p != NULL && p < end) in nfs_path_component()
/fs/hfsplus/
Dbitmap.c24 __be32 *pptr, *curr, *end; in hfsplus_block_allocate() local
46 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_allocate()
48 end = pptr + ((size + 31) & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_allocate()
64 while (curr < end) { in hfsplus_block_allocate()
88 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_allocate()
90 end = pptr + ((size + 31) & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_allocate()
117 while (curr < end) { in hfsplus_block_allocate()
139 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_allocate()
168 __be32 *pptr, *curr, *end; in hfsplus_block_free() local
189 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_free()
[all …]
/fs/nfs/blocklayout/
Dextent_tree.c166 __ext_tree_remove(struct rb_root *root, sector_t start, sector_t end) in __ext_tree_remove() argument
176 if (be->be_f_offset >= end) in __ext_tree_remove()
184 if (ext_f_end(be) > end) in __ext_tree_remove()
185 len2 = ext_f_end(be) - end; in __ext_tree_remove()
197 new->be_f_offset = end; in __ext_tree_remove()
209 be->be_f_offset = end; in __ext_tree_remove()
222 while (be && ext_f_end(be) <= end) { in __ext_tree_remove()
231 if (be && be->be_f_offset < end) { in __ext_tree_remove()
232 len1 = ext_f_end(be) - end; in __ext_tree_remove()
233 be->be_f_offset = end; in __ext_tree_remove()
[all …]
/fs/ceph/
Dmdsmap.c51 struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end) in ceph_mdsmap_decode() argument
63 ceph_decode_16_safe(p, end, version, bad); in ceph_mdsmap_decode()
69 ceph_decode_need(p, end, 8*sizeof(u32) + sizeof(u64), bad); in ceph_mdsmap_decode()
97 ceph_decode_need(p, end, sizeof(u64)*2 + 1 + sizeof(u32), bad); in ceph_mdsmap_decode()
104 ceph_decode_need(p, end, in ceph_mdsmap_decode()
116 ceph_decode_32_safe(p, end, namelen, bad); in ceph_mdsmap_decode()
119 ceph_decode_32_safe(p, end, num_export_targets, bad); in ceph_mdsmap_decode()
155 ceph_decode_32_safe(p, end, n, bad); in ceph_mdsmap_decode()
160 ceph_decode_need(p, end, sizeof(u64)*(n+1), bad); in ceph_mdsmap_decode()
175 start, end - start, true); in ceph_mdsmap_decode()
/fs/ntfs/
Dfile.c335 s64 end, ll; in ntfs_prepare_file_for_write() local
395 end = (pos + iov_iter_count(from) + vol->cluster_size_mask) & in ntfs_prepare_file_for_write()
404 if (end > ll) { in ntfs_prepare_file_for_write()
412 ll = ntfs_attr_extend_allocation(ni, end, -1, pos); in ntfs_prepare_file_for_write()
416 if (end > ll) { in ntfs_prepare_file_for_write()
589 s64 bh_pos, vcn_len, end, initialized_size; in ntfs_prepare_pages_for_non_resident_write() local
647 end = pos + bytes; in ntfs_prepare_pages_for_non_resident_write()
648 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
690 (bh_pos < end && bh_end > end)) { in ntfs_prepare_pages_for_non_resident_write()
745 if (bh_end <= pos || bh_pos >= end) in ntfs_prepare_pages_for_non_resident_write()
[all …]
/fs/hpfs/
Dalloc.c299 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "aip"))) goto end; in hpfs_alloc_if_possible()
308 end: in hpfs_alloc_if_possible()
505 secno end; in do_trim() local
508 end = start + len; in do_trim()
511 if (end > limit_end) in do_trim()
512 end = limit_end; in do_trim()
513 if (start >= end) in do_trim()
515 if (end - start < minlen) in do_trim()
517 err = sb_issue_discard(s, start, end - start, GFP_NOFS, 0); in do_trim()
520 *result += end - start; in do_trim()
[all …]
/fs/squashfs/
Dxattr_id.c78 u64 start, end; in squashfs_read_xattr_id_table() local
103 end = msblk->bytes_used; in squashfs_read_xattr_id_table()
105 if (len != (end - start)) in squashfs_read_xattr_id_table()
123 end = le64_to_cpu(table[n + 1]); in squashfs_read_xattr_id_table()
125 if (start >= end || (end - start) > in squashfs_read_xattr_id_table()
Did.c80 u64 start, end; in squashfs_read_id_index_table() local
111 end = le64_to_cpu(table[n + 1]); in squashfs_read_id_index_table()
113 if (start >= end || (end - start) > in squashfs_read_id_index_table()
/fs/xfs/
Dxfs_discard.c40 xfs_daddr_t end, in xfs_trim_extents() argument
111 if (dbno + dlen < start || dbno > end) { in xfs_trim_extents()
162 xfs_daddr_t start, end, minlen; in xfs_ioc_trim() local
187 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/ext4/
Dextents_status.c147 ext4_lblk_t end);
245 ext4_lblk_t lblk, ext4_lblk_t end, in ext4_es_find_delayed_extent_range() argument
253 BUG_ON(end < lblk); in ext4_es_find_delayed_extent_range()
277 if (es1->es_lblk > end) { in ext4_es_find_delayed_extent_range()
695 ext4_lblk_t end = lblk + len - 1; in ext4_es_insert_extent() local
704 BUG_ON(end < lblk); in ext4_es_insert_extent()
722 err = __es_remove_extent(inode, lblk, end); in ext4_es_insert_extent()
752 ext4_lblk_t end = lblk + len - 1; in ext4_es_cache_extent() local
762 BUG_ON(end < lblk); in ext4_es_cache_extent()
767 if (!es || es->es_lblk > end) in ext4_es_cache_extent()
[all …]
Dfile.c444 pgoff_t end; in ext4_find_unwritten_pgoff() local
456 end = endoff >> PAGE_CACHE_SHIFT; in ext4_find_unwritten_pgoff()
463 num = min_t(pgoff_t, end - index, PAGEVEC_SIZE - 1) + 1; in ext4_find_unwritten_pgoff()
484 if (page->index > end) in ext4_find_unwritten_pgoff()
535 } while (index <= end); in ext4_find_unwritten_pgoff()
554 ext4_lblk_t start, last, end; in ext4_seek_data() local
570 end = isize >> blkbits; in ext4_seek_data()
575 map.m_len = end - last + 1; in ext4_seek_data()
609 } while (last <= end); in ext4_seek_data()
627 ext4_lblk_t start, last, end; in ext4_seek_hole() local
[all …]
/fs/jfs/
Djfs_discard.c86 u64 start, end, minlen; in jfs_ioc_trim() local
96 end = start + (range->len >> sb->s_blocksize_bits) - 1; in jfs_ioc_trim()
106 if (end >= bmp->db_mapsize) in jfs_ioc_trim()
107 end = bmp->db_mapsize - 1; in jfs_ioc_trim()
113 agno_end = BLKTOAG(end, JFS_SBI(ip->i_sb)); in jfs_ioc_trim()
/fs/ufs/
Dballoc.c247 sector_t end, i; in ufs_change_blocknr() local
259 end = count + beg; in ufs_change_blocknr()
260 last_index = end >> (PAGE_CACHE_SHIFT - inode->i_blkbits); in ufs_change_blocknr()
261 for (i = beg; i < end; i = (i | mask) + 1) { in ufs_change_blocknr()
285 lblock = end & mask; in ufs_change_blocknr()
328 sector_t end = beg + n; in ufs_clear_frags() local
330 for (; beg < end; ++beg) { in ufs_clear_frags()
816 unsigned pos, want, blockmap, mask, end; in ufs_bitmap_search() local
854 for (end = result + 8; result < end; result += uspi->s_fpb) { in ufs_bitmap_search()
880 int i, start, end, forw, back; in ufs_clusteracct() local
[all …]
/fs/reiserfs/
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 …]
Ddir.c17 static int reiserfs_dir_fsync(struct file *filp, loff_t start, loff_t end,
31 static int reiserfs_dir_fsync(struct file *filp, loff_t start, loff_t end, in reiserfs_dir_fsync() argument
37 err = filemap_write_and_wait_range(inode->i_mapping, start, end); in reiserfs_dir_fsync()
216 goto end; in reiserfs_readdir_inode()
236 goto end; in reiserfs_readdir_inode()
254 goto end; in reiserfs_readdir_inode()
263 end: in reiserfs_readdir_inode()
/fs/proc/
Dtask_mmu.c326 unsigned long start, end; in show_map_vma() local
339 end = vma->vm_end; in show_map_vma()
344 end, in show_map_vma()
580 static int smaps_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, in smaps_pte_range() argument
601 for (; addr != end; pte++, addr += PAGE_SIZE) in smaps_pte_range()
668 unsigned long addr, unsigned long end, in smaps_hugetlb_range() argument
881 unsigned long end, struct mm_walk *walk) in clear_refs_pte_range() argument
910 for (; addr != end; pte++, addr += PAGE_SIZE) { in clear_refs_pte_range()
935 static int clear_refs_test_walk(unsigned long start, unsigned long end, in clear_refs_test_walk() argument
1096 static int pagemap_pte_hole(unsigned long start, unsigned long end, in pagemap_pte_hole() argument
[all …]
/fs/logfs/
Dfile.c29 unsigned end = start + len; in logfs_write_begin() local
32 zero_user_segments(page, 0, start, end, PAGE_CACHE_SIZE); in logfs_write_begin()
45 unsigned end = start + copied; in logfs_write_end() local
64 if (i_size_read(inode) < (index << PAGE_CACHE_SHIFT) + end) { in logfs_write_end()
65 i_size_write(inode, (index << PAGE_CACHE_SHIFT) + end); in logfs_write_end()
223 int logfs_fsync(struct file *file, loff_t start, loff_t end, int datasync) in logfs_fsync() argument
229 ret = filemap_write_and_wait_range(inode->i_mapping, start, end); in logfs_fsync()
/fs/jffs2/
Dgc.c36 uint32_t start, uint32_t end);
39 uint32_t start, uint32_t end);
483 uint32_t start = 0, end = 0, nrfrags = 0; in jffs2_garbage_collect_live() local
517 end = frag->ofs + frag->size; in jffs2_garbage_collect_live()
535 if((start >> PAGE_CACHE_SHIFT) < ((end-1) >> PAGE_CACHE_SHIFT)) { in jffs2_garbage_collect_live()
537 ret = jffs2_garbage_collect_hole(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live()
540 ret = jffs2_garbage_collect_dnode(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live()
995 uint32_t start, uint32_t end) in jffs2_garbage_collect_hole() argument
1004 f->inocache->ino, start, end); in jffs2_garbage_collect_hole()
1038 start, end, f->inocache->ino); in jffs2_garbage_collect_hole()
[all …]
/fs/afs/
Dwrite.c472 pgoff_t index, pgoff_t end, pgoff_t *_next) in afs_writepages_region() argument
478 _enter(",,%lx,%lx,", index, end); in afs_writepages_region()
488 if (page->index > end) { in afs_writepages_region()
535 } while (index < end && wbc->nr_to_write > 0); in afs_writepages_region()
548 pgoff_t start, end, next; in afs_writepages() local
555 end = -1; in afs_writepages()
556 ret = afs_writepages_region(mapping, wbc, start, end, &next); in afs_writepages()
562 end = (pgoff_t)(LLONG_MAX >> PAGE_CACHE_SHIFT); in afs_writepages()
563 ret = afs_writepages_region(mapping, wbc, 0, end, &next); in afs_writepages()
568 end = wbc->range_end >> PAGE_CACHE_SHIFT; in afs_writepages()
[all …]

1234567891011