Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 106) sorted by relevance

12345

/fs/
Dbinfmt_script.c19 static inline const char *next_non_spacetab(const char *first, const char *last) in next_non_spacetab() argument
21 for (; first <= last; first++) in next_non_spacetab()
22 if (!spacetab(*first)) in next_non_spacetab()
23 return first; in next_non_spacetab()
26 static inline const char *next_terminator(const char *first, const char *last) in next_terminator() argument
28 for (; first <= last; first++) in next_terminator()
29 if (spacetab(*first) || !*first) in next_terminator()
30 return first; in next_terminator()
Dfs_pin.c76 p = READ_ONCE(m->mnt_pins.first); in mnt_pin_kill()
90 q = READ_ONCE(p->first); in group_pin_kill()
/fs/afs/
Dwrite.c239 pgoff_t first, pgoff_t last) in afs_kill_pages() argument
246 vnode->fid.vid, vnode->fid.vnode, first, last); in afs_kill_pages()
251 _debug("kill %lx-%lx", first, last); in afs_kill_pages()
253 count = last - first + 1; in afs_kill_pages()
256 pv.nr = find_get_pages_contig(mapping, first, count, pv.pages); in afs_kill_pages()
264 if (page->index >= first) in afs_kill_pages()
265 first = page->index + 1; in afs_kill_pages()
272 } while (first <= last); in afs_kill_pages()
282 pgoff_t first, pgoff_t last) in afs_redirty_pages() argument
289 vnode->fid.vid, vnode->fid.vnode, first, last); in afs_redirty_pages()
[all …]
Drxrpc.c280 struct bio_vec *bv, pgoff_t first, pgoff_t last, in afs_load_bvec() argument
287 nr = min_t(pgoff_t, last - first + 1, AFS_BVEC_MAX); in afs_load_bvec()
288 n = find_get_pages_contig(op->store.mapping, first, nr, pages); in afs_load_bvec()
294 if (first + i >= last) { in afs_load_bvec()
328 pgoff_t first = op->store.first, last = op->store.last; in afs_send_pages() local
335 afs_load_bvec(call, msg, bv, first, last, offset); in afs_send_pages()
336 trace_afs_send_pages(call, msg, first, last, offset); in afs_send_pages()
349 first += nr; in afs_send_pages()
350 } while (first <= last); in afs_send_pages()
352 trace_afs_sent_pages(call, op->store.first, last, first, ret); in afs_send_pages()
[all …]
Dfile.c448 struct page *first, *page; in afs_readpages_one() local
456 first = lru_to_page(pages); in afs_readpages_one()
457 index = first->index + 1; in afs_readpages_one()
459 for (p = first->lru.prev; p != pages; p = p->prev) { in afs_readpages_one()
474 req->pos = first->index; in afs_readpages_one()
/fs/xfs/libxfs/
Dxfs_types.c69 xfs_agino_t *first, in xfs_agino_range() argument
82 *first = XFS_AGB_TO_AGINO(mp, bno); in xfs_agino_range()
102 xfs_agino_t first; in xfs_verify_agino() local
105 xfs_agino_range(mp, agno, &first, &last); in xfs_verify_agino()
106 return agino >= first && agino <= last; in xfs_verify_agino()
192 xfs_agino_t first, last; in xfs_icount_range() local
194 xfs_agino_range(mp, agno, &first, &last); in xfs_icount_range()
195 nr_inos += last - first + 1; in xfs_icount_range()
Dxfs_rtbitmap.c497 uint first = (uint)((char *)sp - (char *)bp->b_addr); in xfs_rtmodify_summary_int() local
506 xfs_trans_log_buf(tp, bp, first, first + sizeof(*sp) - 1); in xfs_rtmodify_summary_int()
545 xfs_rtword_t *first; /* first used word in the buffer */ in xfs_rtmodify_range() local
567 first = b = &bufp[word]; in xfs_rtmodify_range()
601 (uint)((char *)first - (char *)bufp), in xfs_rtmodify_range()
607 first = b = bufp = bp->b_addr; in xfs_rtmodify_range()
641 (uint)((char *)first - (char *)bufp), in xfs_rtmodify_range()
647 first = b = bufp = bp->b_addr; in xfs_rtmodify_range()
677 if (b > first) in xfs_rtmodify_range()
678 xfs_trans_log_buf(tp, bp, (uint)((char *)first - (char *)bufp), in xfs_rtmodify_range()
/fs/reiserfs/
Dlbalance.c312 int first, int cpy_num) in leaf_copy_items_entirely() argument
324 RFALSE(B_NR_ITEMS(src) - first < cpy_num, in leaf_copy_items_entirely()
326 B_NR_ITEMS(src), cpy_num, first); in leaf_copy_items_entirely()
358 memcpy(ih, item_head(src, first), cpy_num * IH_SIZE); in leaf_copy_items_entirely()
385 item_body(src, (first + cpy_num - 1)), in leaf_copy_items_entirely()
815 int first, int del_num);
828 int first, int del_num, int del_bytes) in leaf_delete_items() argument
836 RFALSE(first < 0 in leaf_delete_items()
837 || first + del_num > item_amount, in leaf_delete_items()
839 "no so much items (%d) to delete (only %d)", first, in leaf_delete_items()
[all …]
Dbitmap.c683 static void print_sep(struct seq_file *seq, int *first) in print_sep() argument
685 if (!*first) in print_sep()
688 *first = 0; in print_sep()
693 int first = 1; in show_alloc_options() local
702 print_sep(seq, &first); in show_alloc_options()
710 print_sep(seq, &first); in show_alloc_options()
718 print_sep(seq, &first); in show_alloc_options()
722 print_sep(seq, &first); in show_alloc_options()
726 print_sep(seq, &first); in show_alloc_options()
730 print_sep(seq, &first); in show_alloc_options()
[all …]
Dprints.c442 static int print_internal(struct buffer_head *bh, int first, int last) in print_internal() argument
454 if (first == -1) { in print_internal()
458 from = first; in print_internal()
477 static int print_leaf(struct buffer_head *bh, int print_mode, int first, in print_leaf() argument
504 if (first < 0 || first > nr - 1) in print_leaf()
507 from = first; in print_leaf()
614 int mode, first, last; in print_block() local
624 first = va_arg(args, int); in print_block()
626 if (print_leaf(bh, mode, first, last)) in print_block()
627 if (print_internal(bh, first, last)) in print_block()
Ditem_ops.c80 static int sd_part_size(struct virtual_item *vi, int first, int count) in sd_part_size() argument
172 static int direct_part_size(struct virtual_item *vi, int first, int count) in direct_part_size() argument
314 static int indirect_part_size(struct virtual_item *vi, int first, int units) in indirect_part_size() argument
580 static int direntry_part_size(struct virtual_item *vi, int first, int count) in direntry_part_size() argument
587 if (first == 0) in direntry_part_size()
698 static int errcatch_part_size(struct virtual_item *vi, int first, int count) in errcatch_part_size() argument
/fs/btrfs/
Dmisc.h11 #define in_range(b, first, len) ((b) >= (first) && (b) < (first) + (len)) argument
Dfree-space-tree.c235 u64 first, last; in convert_free_space_to_bitmaps() local
241 first = div_u64(found_key.objectid - start, in convert_free_space_to_bitmaps()
245 le_bitmap_set(bitmap, first, last - first); in convert_free_space_to_bitmaps()
528 unsigned long ptr, first, last; in free_space_set_bits() local
543 first = div_u64(*start - found_start, fs_info->sectorsize); in free_space_set_bits()
546 extent_buffer_bitmap_set(leaf, ptr, first, last - first); in free_space_set_bits()
548 extent_buffer_bitmap_clear(leaf, ptr, first, last - first); in free_space_set_bits()
/fs/gfs2/
Drgrp.h85 u64 first = rgd->rd_data0; in rgrp_contains_block() local
86 u64 last = first + rgd->rd_data; in rgrp_contains_block()
87 return first <= block && block < last; in rgrp_contains_block()
Dbmap.c428 const __be64 *first = ptr; in gfs2_extent_length() local
440 return ptr - first; in gfs2_extent_length()
798 const __be64 *first, *ptr, *end; in gfs2_alloc_size() local
817 first = metapointer(ip->i_height - 1, mp); in gfs2_alloc_size()
819 if (end - first > size) in gfs2_alloc_size()
820 end = first + size; in gfs2_alloc_size()
821 for (ptr = first; ptr < end; ptr++) { in gfs2_alloc_size()
825 return ptr - first; in gfs2_alloc_size()
1669 __be64 *first, *ptr, *end; in find_nonnull_ptr() local
1671 first = metaptr1(h, mp); in find_nonnull_ptr()
[all …]
Dtrace_gfs2.h200 TP_PROTO(const struct gfs2_holder *gh, int first),
202 TP_ARGS(gh, first),
208 __field( int, first )
216 __entry->first = first;
223 __entry->first ? "first": "other",
/fs/xfs/
Dxfs_buf_item.c773 uint first, in xfs_buf_item_log_segment() argument
787 ASSERT(first < XFS_BLF_DATAMAP_SIZE * XFS_BLF_CHUNK * NBWORD); in xfs_buf_item_log_segment()
793 first_bit = first >> XFS_BLF_SHIFT; in xfs_buf_item_log_segment()
858 uint first, in xfs_buf_item_log() argument
876 if (first > end) { in xfs_buf_item_log()
887 if (first < start) in xfs_buf_item_log()
888 first = start; in xfs_buf_item_log()
891 xfs_buf_item_log_segment(first - start, end - start, in xfs_buf_item_log()
/fs/nilfs2/
Ddat.c439 __u64 first, last; in nilfs_dat_get_vinfo() local
451 first = vinfo->vi_vblocknr; in nilfs_dat_get_vinfo()
452 do_div(first, entries_per_block); in nilfs_dat_get_vinfo()
453 first *= entries_per_block; in nilfs_dat_get_vinfo()
454 last = first + entries_per_block - 1; in nilfs_dat_get_vinfo()
456 j < nvi && vinfo->vi_vblocknr >= first && in nilfs_dat_get_vinfo()
/fs/befs/
Dbtree.c333 int first, last, mid; in befs_find_key() local
357 first = 0; in befs_find_key()
359 while (last >= first) { in befs_find_key()
360 mid = (last + first) / 2; in befs_find_key()
361 befs_debug(sb, "first: %d, last: %d, mid: %d", first, last, in befs_find_key()
377 first = mid + 1; in befs_find_key()
/fs/cramfs/
DREADME25 The order of inode traversal is described as "width-first" (not to be
26 confused with breadth-first); i.e. like depth-first but listing all of
48 same as the start of the (i+1)'th <block> if there is one). The first
63 the compressed data length is included in the first 2 bytes of
68 The order of <file_data>'s is a depth-first descent of the directory
88 is not set then the first 2 bytes of the block contains the size of the
/fs/ext4/
Dmballoc.c478 int first, int count) in mb_free_blocks_double() argument
487 if (!mb_test_bit(first + i, e4b->bd_info->bb_bitmap)) { in mb_free_blocks_double()
491 blocknr += EXT4_C2B(EXT4_SB(sb), first + i); in mb_free_blocks_double()
497 first + i); in mb_free_blocks_double()
501 mb_clear_bit(first + i, e4b->bd_info->bb_bitmap); in mb_free_blocks_double()
505 static void mb_mark_used_double(struct ext4_buddy *e4b, int first, int count) in mb_mark_used_double() argument
513 BUG_ON(mb_test_bit(first + i, e4b->bd_info->bb_bitmap)); in mb_mark_used_double()
514 mb_set_bit(first + i, e4b->bd_info->bb_bitmap); in mb_mark_used_double()
567 struct ext4_buddy *e4b, int first, int count) in mb_free_blocks_double() argument
572 int first, int count) in mb_mark_used_double() argument
[all …]
Dindirect.c864 unsigned long count, __le32 *first, in ext4_clear_blocks() argument
889 for (p = first; p < last; p++) in ext4_clear_blocks()
920 __le32 *first, __le32 *last) in ext4_free_data() argument
941 for (p = first; p < last; p++) { in ext4_free_data()
1005 __le32 *first, __le32 *last, int depth) in ext4_free_branches() argument
1017 while (--p >= first) { in ext4_free_branches()
1110 ext4_free_data(handle, inode, parent_bh, first, last); in ext4_free_branches()
/fs/nfsd/
Dnfsxdr.c310 args->first.iov_base = (void *)p; in nfssvc_decode_writeargs()
311 args->first.iov_len = head->iov_len - hdr; in nfssvc_decode_writeargs()
383 args->first.iov_base = p; in nfssvc_decode_symlinkargs()
384 args->first.iov_len = rqstp->rq_arg.head[0].iov_len; in nfssvc_decode_symlinkargs()
385 args->first.iov_len -= (char *)p - base; in nfssvc_decode_symlinkargs()
398 if (xdrlen > args->first.iov_len - (8 * sizeof(__be32))) in nfssvc_decode_symlinkargs()
Dxdr.h37 struct kvec first; member
75 struct kvec first; member
/fs/iomap/
Dbuffered-io.c97 unsigned first = poff >> block_bits; in iomap_adjust_read_range() local
109 for (i = first; i <= last; i++) { in iomap_adjust_read_range()
115 first++; in iomap_adjust_read_range()
136 if (first <= end && last > end) in iomap_adjust_read_range()
149 unsigned first = off >> inode->i_blkbits; in iomap_iop_set_range_uptodate() local
154 bitmap_set(iop->uptodate, first, last - first + 1); in iomap_iop_set_range_uptodate()
438 unsigned len, first, last; in iomap_is_partially_uptodate() local
445 first = from >> inode->i_blkbits; in iomap_is_partially_uptodate()
449 for (i = first; i <= last; i++) in iomap_is_partially_uptodate()

12345