Home
last modified time | relevance | path

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

12345

/fs/
Dbinfmt_script.c19 static inline char *next_non_spacetab(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 char *next_terminator(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.c233 pgoff_t first, pgoff_t last) in afs_kill_pages() argument
240 vnode->fid.vid, vnode->fid.vnode, first, last); in afs_kill_pages()
245 _debug("kill %lx-%lx", first, last); in afs_kill_pages()
247 count = last - first + 1; in afs_kill_pages()
250 pv.nr = find_get_pages_contig(mapping, first, count, pv.pages); in afs_kill_pages()
258 if (page->index >= first) in afs_kill_pages()
259 first = page->index + 1; in afs_kill_pages()
266 } while (first <= last); in afs_kill_pages()
276 pgoff_t first, pgoff_t last) in afs_redirty_pages() argument
283 vnode->fid.vid, vnode->fid.vnode, first, last); in afs_redirty_pages()
[all …]
Drxrpc.c284 struct bio_vec *bv, pgoff_t first, pgoff_t last, in afs_load_bvec() argument
290 nr = min_t(pgoff_t, last - first + 1, AFS_BVEC_MAX); in afs_load_bvec()
291 n = find_get_pages_contig(call->mapping, first, nr, pages); in afs_load_bvec()
297 if (first + i >= last) { in afs_load_bvec()
330 pgoff_t first = call->first, last = call->last; in afs_send_pages() local
337 afs_load_bvec(call, msg, bv, first, last, offset); in afs_send_pages()
338 trace_afs_send_pages(call, msg, first, last, offset); in afs_send_pages()
351 first += nr; in afs_send_pages()
352 } while (first <= last); in afs_send_pages()
354 trace_afs_sent_pages(call, call->first, last, first, ret); in afs_send_pages()
[all …]
Dfile.c446 struct page *first, *page; in afs_readpages_one() local
454 first = lru_to_page(pages); in afs_readpages_one()
455 index = first->index + 1; in afs_readpages_one()
457 for (p = first->lru.prev; p != pages; p = p->prev) { in afs_readpages_one()
472 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.h10 #define in_range(b, first, len) ((b) >= (first) && (b) < (first) + (len)) argument
/fs/gfs2/
Drgrp.h87 u64 first = rgd->rd_data0; in rgrp_contains_block() local
88 u64 last = first + rgd->rd_data; in rgrp_contains_block()
89 return first <= block && block < last; in rgrp_contains_block()
Dbmap.c431 const __be64 *first = ptr; in gfs2_extent_length() local
443 return ptr - first; in gfs2_extent_length()
799 const __be64 *first, *ptr, *end; in gfs2_alloc_size() local
818 first = metapointer(ip->i_height - 1, mp); in gfs2_alloc_size()
820 if (end - first > size) in gfs2_alloc_size()
821 end = first + size; in gfs2_alloc_size()
822 for (ptr = first; ptr < end; ptr++) { in gfs2_alloc_size()
826 return ptr - first; in gfs2_alloc_size()
1666 __be64 *first, *ptr, *end; in find_nonnull_ptr() local
1668 first = metaptr1(h, mp); in find_nonnull_ptr()
[all …]
Dtrace_gfs2.h201 TP_PROTO(const struct gfs2_holder *gh, int first),
203 TP_ARGS(gh, first),
209 __field( int, first )
217 __entry->first = first;
224 __entry->first ? "first": "other",
/fs/nilfs2/
Ddat.c425 __u64 first, last; in nilfs_dat_get_vinfo() local
437 first = vinfo->vi_vblocknr; in nilfs_dat_get_vinfo()
438 do_div(first, entries_per_block); in nilfs_dat_get_vinfo()
439 first *= entries_per_block; in nilfs_dat_get_vinfo()
440 last = first + entries_per_block - 1; in nilfs_dat_get_vinfo()
442 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.c454 int first, int count) in mb_free_blocks_double() argument
463 if (!mb_test_bit(first + i, e4b->bd_info->bb_bitmap)) { in mb_free_blocks_double()
467 blocknr += EXT4_C2B(EXT4_SB(sb), first + i); in mb_free_blocks_double()
473 first + i); in mb_free_blocks_double()
477 mb_clear_bit(first + i, e4b->bd_info->bb_bitmap); in mb_free_blocks_double()
481 static void mb_mark_used_double(struct ext4_buddy *e4b, int first, int count) in mb_mark_used_double() argument
489 BUG_ON(mb_test_bit(first + i, e4b->bd_info->bb_bitmap)); in mb_mark_used_double()
490 mb_set_bit(first + i, e4b->bd_info->bb_bitmap); in mb_mark_used_double()
516 struct ext4_buddy *e4b, int first, int count) in mb_free_blocks_double() argument
521 int first, int count) in mb_mark_used_double() argument
[all …]
Dindirect.c826 unsigned long count, __le32 *first, in ext4_clear_blocks() argument
869 for (p = first; p < last; p++) in ext4_clear_blocks()
900 __le32 *first, __le32 *last) in ext4_free_data() argument
921 for (p = first; p < last; p++) { in ext4_free_data()
985 __le32 *first, __le32 *last, int depth) in ext4_free_branches() argument
997 while (--p >= first) { in ext4_free_branches()
1091 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/xfs/
Dxfs_buf_item.c794 uint first, in xfs_buf_item_log_segment() argument
811 first_bit = first >> XFS_BLF_SHIFT; in xfs_buf_item_log_segment()
876 uint first, in xfs_buf_item_log() argument
894 if (first > end) { in xfs_buf_item_log()
905 if (first < start) in xfs_buf_item_log()
906 first = start; in xfs_buf_item_log()
909 xfs_buf_item_log_segment(first - start, end - start, in xfs_buf_item_log()
/fs/iomap/
Dbuffered-io.c73 unsigned first = poff >> block_bits; in iomap_adjust_read_range() local
85 for (i = first; i <= last; i++) { in iomap_adjust_read_range()
91 first++; in iomap_adjust_read_range()
112 if (first <= end && last > end) in iomap_adjust_read_range()
125 unsigned first = off >> inode->i_blkbits; in iomap_set_range_uptodate() local
132 if (i >= first && i <= last) in iomap_set_range_uptodate()
434 unsigned len, first, last; in iomap_is_partially_uptodate() local
441 first = from >> inode->i_blkbits; in iomap_is_partially_uptodate()
445 for (i = first; i <= last; i++) in iomap_is_partially_uptodate()
/fs/efs/
Dinode.c204 int cur, last, first = 1; in efs_map_block() local
276 if (first || lastblock != iblock) { in efs_map_block()
287 first = 0; in efs_map_block()

12345