Home
last modified time | relevance | path

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

1234

/fs/afs/
Dwrite.c140 candidate->first = candidate->last = index; in afs_write_begin()
198 ASSERTRANGE(wb->first, <=, index, <=, wb->last); in afs_write_begin()
199 if (index == wb->first && from < wb->offset_first) in afs_write_begin()
209 _debug("append into %lx-%lx", wb->first, wb->last); in afs_write_begin()
280 pgoff_t first, pgoff_t last) in afs_kill_pages() argument
286 vnode->fid.vid, vnode->fid.vnode, first, last); in afs_kill_pages()
291 _debug("kill %lx-%lx", first, last); in afs_kill_pages()
293 count = last - first + 1; in afs_kill_pages()
297 first, count, pv.pages); in afs_kill_pages()
308 } while (first < last); in afs_kill_pages()
[all …]
Drxrpc.c247 pgoff_t first = call->first, last = call->last; in afs_send_pages() local
256 _debug("attach %lx-%lx", first, last); in afs_send_pages()
258 count = last - first + 1; in afs_send_pages()
261 n = find_get_pages_contig(call->mapping, first, count, pages); in afs_send_pages()
268 if (first + loop >= last) in afs_send_pages()
284 if (first + loop >= last) in afs_send_pages()
292 first += count; in afs_send_pages()
298 } while (first <= last); in afs_send_pages()
/fs/xfs/linux-2.6/
Dxfs_fs_subr.c34 xfs_off_t first, in xfs_tosspages() argument
41 truncate_inode_pages(mapping, first); in xfs_tosspages()
47 xfs_off_t first, in xfs_flushinval_pages() argument
58 truncate_inode_pages(mapping, first); in xfs_flushinval_pages()
66 xfs_off_t first, in xfs_flush_pages() argument
90 xfs_off_t first, in xfs_wait_on_pages() argument
Dxfs_buf.c135 int first, final; in page_region_mask() local
137 first = BTOPR(offset); in page_region_mask()
139 first = min(first, final); in page_region_mask()
142 mask <<= BITS_PER_LONG - (final - first); in page_region_mask()
146 ASSERT((final - first) < BITS_PER_LONG && (final - first) >= 0); in page_region_mask()
371 pgoff_t first; in _xfs_buf_lookup_pages() local
384 first = bp->b_file_offset >> PAGE_CACHE_SHIFT; in _xfs_buf_lookup_pages()
391 page = find_or_create_page(mapping, first + i, gfp_mask); in _xfs_buf_lookup_pages()
/fs/reiserfs/
Dlbalance.c284 int first, int cpy_num) in leaf_copy_items_entirely() argument
296 RFALSE(B_NR_ITEMS(src) - first < cpy_num, in leaf_copy_items_entirely()
298 B_NR_ITEMS(src), cpy_num, first); in leaf_copy_items_entirely()
327 memcpy(ih, B_N_PITEM_HEAD(src, first), cpy_num * IH_SIZE); in leaf_copy_items_entirely()
354 B_N_PITEM(src, (first + cpy_num - 1)), j - last_inserted_loc); in leaf_copy_items_entirely()
725 int first, int del_num);
734 int first, int del_num, int del_bytes) in leaf_delete_items() argument
742 RFALSE(first < 0 in leaf_delete_items()
743 || first + del_num > item_amount, in leaf_delete_items()
745 "no so much items (%d) to delete (only %d)", first, in leaf_delete_items()
[all …]
Dprints.c388 static int print_internal(struct buffer_head *bh, int first, int last) in print_internal() argument
400 if (first == -1) { in print_internal()
404 from = first; in print_internal()
423 static int print_leaf(struct buffer_head *bh, int print_mode, int first, in print_leaf() argument
450 if (first < 0 || first > nr - 1) in print_leaf()
453 from = first; in print_leaf()
559 int mode, first, last; in print_block() local
569 first = va_arg(args, int); in print_block()
571 if (print_leaf(bh, mode, first, last)) in print_block()
572 if (print_internal(bh, first, last)) in print_block()
Ditem_ops.c87 static int sd_part_size(struct virtual_item *vi, int first, int count) in sd_part_size() argument
181 static int direct_part_size(struct virtual_item *vi, int first, int count) in direct_part_size() argument
323 static int indirect_part_size(struct virtual_item *vi, int first, int units) in indirect_part_size() argument
586 static int direntry_part_size(struct virtual_item *vi, int first, int count) in direntry_part_size() argument
593 if (first == 0) in direntry_part_size()
701 static int errcatch_part_size(struct virtual_item *vi, int first, int count) in errcatch_part_size() argument
/fs/xfs/
Dxfs_vnodeops.h70 void xfs_tosspages(struct xfs_inode *inode, xfs_off_t first,
72 int xfs_flushinval_pages(struct xfs_inode *ip, xfs_off_t first,
74 int xfs_flush_pages(struct xfs_inode *ip, xfs_off_t first,
76 int xfs_wait_on_pages(struct xfs_inode *ip, xfs_off_t first, xfs_off_t last);
Dxfs_dir2.h74 xfs_fsblock_t *first,
81 xfs_fsblock_t *first,
85 xfs_fsblock_t *first,
Dxfs_buf_item.c49 uint first, in xfs_buf_item_log_debug() argument
62 byte = first; in xfs_buf_item_log_debug()
63 nbytes = last - first + 1; in xfs_buf_item_log_debug()
64 bfset(bip->bli_logged, first, nbytes); in xfs_buf_item_log_debug()
84 uint first, in xfs_buf_item_flush_log_debug() argument
96 nbytes = last - first + 1; in xfs_buf_item_flush_log_debug()
97 bfset(bip->bli_logged, first, nbytes); in xfs_buf_item_flush_log_debug()
778 uint first, in xfs_buf_item_log() argument
800 first_bit = first >> XFS_BLI_SHIFT; in xfs_buf_item_log()
857 xfs_buf_item_log_debug(bip, first, last); in xfs_buf_item_log()
Dxfs_buf_item.h135 uint first,
138 #define xfs_buf_item_flush_log_debug(bp, first, last) argument
Dxfs_mount.c427 int first; in xfs_sb_to_disk() local
436 first = xfs_sb_info[f].offset; in xfs_sb_to_disk()
437 size = xfs_sb_info[f + 1].offset - first; in xfs_sb_to_disk()
442 memcpy(to_ptr + first, from_ptr + first, size); in xfs_sb_to_disk()
446 *(__be16 *)(to_ptr + first) = in xfs_sb_to_disk()
447 cpu_to_be16(*(__u16 *)(from_ptr + first)); in xfs_sb_to_disk()
450 *(__be32 *)(to_ptr + first) = in xfs_sb_to_disk()
451 cpu_to_be32(*(__u32 *)(from_ptr + first)); in xfs_sb_to_disk()
454 *(__be64 *)(to_ptr + first) = in xfs_sb_to_disk()
455 cpu_to_be64(*(__u64 *)(from_ptr + first)); in xfs_sb_to_disk()
[all …]
Dxfs_dir2.c204 xfs_fsblock_t *first, /* bmap's firstblock */ in xfs_dir_createname() argument
223 args.firstblock = first; in xfs_dir_createname()
335 xfs_fsblock_t *first, /* bmap's firstblock */ in xfs_dir_removename() argument
352 args.firstblock = first; in xfs_dir_removename()
416 xfs_fsblock_t *first, /* bmap's firstblock */ in xfs_dir_replace() argument
435 args.firstblock = first; in xfs_dir_replace()
/fs/gfs2/
Dlog.c51 unsigned int first, second; in gfs2_struct2blk() local
54 first = (sdp->sd_sb.sb_bsize - sizeof(struct gfs2_log_descriptor)) / ssize; in gfs2_struct2blk()
56 if (nstruct > first) { in gfs2_struct2blk()
59 blks += DIV_ROUND_UP(nstruct - first, second); in gfs2_struct2blk()
175 struct list_head *first; in gfs2_ail1_start() local
187 first = head->prev; in gfs2_ail1_start()
188 first_ai = list_entry(first, struct gfs2_ail, ai_list); in gfs2_ail1_start()
193 first = NULL; in gfs2_ail1_start()
196 if (first && (head->prev != first || in gfs2_ail1_start()
/fs/ext4/
Dmballoc.h248 #define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) argument
Dballoc.c196 #define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) argument
759 ext4_group_t first = metagroup * EXT4_DESC_PER_BLOCK(sb); in ext4_bg_num_gdb_meta() local
760 ext4_group_t last = first + EXT4_DESC_PER_BLOCK(sb) - 1; in ext4_bg_num_gdb_meta()
762 if (group == first || group == first + 1 || group == last) in ext4_bg_num_gdb_meta()
Dxattr.c531 struct ext4_xattr_entry *first; member
545 last = s->first; in ext4_xattr_set_entry()
604 last = s->first; in ext4_xattr_set_entry()
672 bs->s.first = BFIRST(bs->bh); in ext4_xattr_block_find()
674 bs->s.here = bs->s.first; in ext4_xattr_block_find()
718 if (!IS_LAST_ENTRY(s->first)) in ext4_xattr_block_set()
748 s->first = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
763 s->first = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
773 if (!IS_LAST_ENTRY(s->first)) in ext4_xattr_block_set()
777 if (!IS_LAST_ENTRY(s->first)) { in ext4_xattr_block_set()
[all …]
Dmballoc.c445 int first, int count) in mb_free_blocks_double() argument
454 if (!mb_test_bit(first + i, e4b->bd_info->bb_bitmap)) { in mb_free_blocks_double()
457 blocknr += first + i; in mb_free_blocks_double()
464 first + i, e4b->bd_group); in mb_free_blocks_double()
466 mb_clear_bit(first + i, e4b->bd_info->bb_bitmap); in mb_free_blocks_double()
470 static void mb_mark_used_double(struct ext4_buddy *e4b, int first, int count) in mb_mark_used_double() argument
478 BUG_ON(mb_test_bit(first + i, e4b->bd_info->bb_bitmap)); in mb_mark_used_double()
479 mb_set_bit(first + i, e4b->bd_info->bb_bitmap); in mb_mark_used_double()
504 struct ext4_buddy *e4b, int first, int count) in mb_free_blocks_double() argument
509 int first, int count) in mb_mark_used_double() argument
[all …]
/fs/befs/
Dbtree.c339 int first, last, mid; in befs_find_key() local
365 first = 0; in befs_find_key()
367 while (last >= first) { in befs_find_key()
368 mid = (last + first) / 2; in befs_find_key()
369 befs_debug(sb, "first: %d, last: %d, mid: %d", first, last, in befs_find_key()
385 first = mid + 1; in befs_find_key()
/fs/ext3/
Dxattr.c521 struct ext3_xattr_entry *first; member
535 last = s->first; in ext3_xattr_set_entry()
594 last = s->first; in ext3_xattr_set_entry()
662 bs->s.first = BFIRST(bs->bh); in ext3_xattr_block_find()
664 bs->s.here = bs->s.first; in ext3_xattr_block_find()
708 if (!IS_LAST_ENTRY(s->first)) in ext3_xattr_block_set()
738 s->first = ENTRY(header(s->base)+1); in ext3_xattr_block_set()
753 s->first = ENTRY(header(s->base)+1); in ext3_xattr_block_set()
763 if (!IS_LAST_ENTRY(s->first)) in ext3_xattr_block_set()
767 if (!IS_LAST_ENTRY(s->first)) { in ext3_xattr_block_set()
[all …]
/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
52 The order of <file_data>'s is a depth-first descent of the directory
/fs/efs/
Dinode.c206 int cur, last, first = 1; in efs_map_block() local
278 if (first || lastblock != iblock) { in efs_map_block()
289 first = 0; in efs_map_block()
/fs/ocfs2/
Dxattr.c3647 struct ocfs2_xattr_bucket *first, in ocfs2_mv_xattr_bucket_cross_cluster() argument
3659 u64 last_cluster_blkno = bucket_blkno(first) + in ocfs2_mv_xattr_bucket_cross_cluster()
3662 BUG_ON(le16_to_cpu(bucket_xh(first)->xh_num_buckets) < num_buckets); in ocfs2_mv_xattr_bucket_cross_cluster()
3668 ret = ocfs2_mv_xattr_buckets(inode, handle, bucket_blkno(first), in ocfs2_mv_xattr_bucket_cross_cluster()
3688 ocfs2_xattr_bucket_relse(first); in ocfs2_mv_xattr_bucket_cross_cluster()
3695 ret = ocfs2_read_xattr_bucket(first, new_blkno); in ocfs2_mv_xattr_bucket_cross_cluster()
4179 struct ocfs2_xattr_bucket *first, in ocfs2_adjust_xattr_cross_cluster() argument
4189 (unsigned long long)bucket_blkno(first), prev_clusters, in ocfs2_adjust_xattr_cross_cluster()
4195 first, target, in ocfs2_adjust_xattr_cross_cluster()
4203 u64 last_blk = bucket_blkno(first) + in ocfs2_adjust_xattr_cross_cluster()
[all …]
/fs/partitions/
Dacorn.c168 int first = 1; in adfspart_check_CUMANA() local
208 first = 0; in adfspart_check_CUMANA()
235 return first ? 0 : 1; in adfspart_check_CUMANA()
/fs/gfs2/locking/dlm/
Dsysfs.c87 return sprintf(buf, "%d\n", ls->first); in first_show()
131 GDLM_ATTR(first, 0444, first_show, NULL);

1234