/fs/afs/ |
D | write.c | 239 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() 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() 294 _debug("redirty %lx-%lx", first, last); in afs_redirty_pages() 296 count = last - first + 1; in afs_redirty_pages() 312 } while (first <= last); in afs_redirty_pages() [all …]
|
D | rxrpc.c | 280 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() 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() 350 } while (first <= last); in afs_send_pages() 352 trace_afs_sent_pages(call, op->store.first, last, first, ret); in afs_send_pages() 389 if (op->store.last == op->store.first) { in afs_make_call() 398 tx_total_len += (op->store.last - op->store.first - 1) * PAGE_SIZE; in afs_make_call()
|
/fs/ext2/ |
D | xattr.c | 413 struct ext2_xattr_entry *here = NULL, *last = NULL; in ext2_xattr_set() local 468 last = FIRST_ENTRY(bh); in ext2_xattr_set() 469 while (!IS_LAST_ENTRY(last)) { in ext2_xattr_set() 470 if (!ext2_xattr_entry_valid(last, end, sb->s_blocksize)) in ext2_xattr_set() 472 if (last->e_value_size) { in ext2_xattr_set() 473 size_t offs = le16_to_cpu(last->e_value_offs); in ext2_xattr_set() 480 name, last); in ext2_xattr_set() 482 here = last; in ext2_xattr_set() 484 last = EXT2_XATTR_NEXT(last); in ext2_xattr_set() 487 here = last; in ext2_xattr_set() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_types.c | 70 xfs_agino_t *last) in xfs_agino_range() argument 89 *last = XFS_AGB_TO_AGINO(mp, bno) - 1; in xfs_agino_range() 103 xfs_agino_t last; 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()
|
D | xfs_dir2.c | 603 xfs_fileoff_t last; /* last file offset */ in xfs_dir2_isblock() local 606 if ((rval = xfs_bmap_last_offset(args->dp, &last, XFS_DATA_FORK))) in xfs_dir2_isblock() 608 rval = XFS_FSB_TO_B(args->dp->i_mount, last) == args->geo->blksize; in xfs_dir2_isblock() 625 xfs_fileoff_t last; /* last file offset */ in xfs_dir2_isleaf() local 628 if ((rval = xfs_bmap_last_offset(args->dp, &last, XFS_DATA_FORK))) in xfs_dir2_isleaf() 630 *vp = last == args->geo->leafblk + args->geo->fsbcount; in xfs_dir2_isleaf()
|
/fs/f2fs/ |
D | xattr.c | 631 struct f2fs_xattr_entry *here, *last; in __f2fs_setxattr() local 683 last = here; in __f2fs_setxattr() 684 while (!IS_XATTR_LAST_ENTRY(last)) { in __f2fs_setxattr() 685 if ((void *)(last) + sizeof(__u32) > last_base_addr || in __f2fs_setxattr() 686 (void *)XATTR_NEXT_ENTRY(last) > last_base_addr) { in __f2fs_setxattr() 688 inode->i_ino, ENTRY_SIZE(last)); in __f2fs_setxattr() 693 last = XATTR_NEXT_ENTRY(last); in __f2fs_setxattr() 705 free = MIN_OFFSET(inode) - ((char *)last - (char *)base_addr); in __f2fs_setxattr() 724 memmove(here, next, (char *)last - (char *)next); in __f2fs_setxattr() 725 last = (struct f2fs_xattr_entry *)((char *)last - oldsize); in __f2fs_setxattr() [all …]
|
/fs/proc/ |
D | namespaces.c | 121 const struct proc_ns_operations **entry, **last; in proc_ns_dir_readdir() local 131 last = &ns_entries[ARRAY_SIZE(ns_entries) - 1]; in proc_ns_dir_readdir() 132 while (entry <= last) { in proc_ns_dir_readdir() 155 const struct proc_ns_operations **entry, **last; in proc_ns_dir_lookup() local 162 last = &ns_entries[ARRAY_SIZE(ns_entries)]; in proc_ns_dir_lookup() 163 for (entry = ns_entries; entry < last; entry++) { in proc_ns_dir_lookup() 169 if (entry == last) in proc_ns_dir_lookup()
|
/fs/ext4/ |
D | xattr.c | 1310 static size_t ext4_xattr_free_space(struct ext4_xattr_entry *last, in ext4_xattr_free_space() argument 1313 for (; !IS_LAST_ENTRY(last); last = EXT4_XATTR_NEXT(last)) { in ext4_xattr_free_space() 1314 if (!last->e_value_inum && last->e_value_size) { in ext4_xattr_free_space() 1315 size_t offs = le16_to_cpu(last->e_value_offs); in ext4_xattr_free_space() 1320 *total += EXT4_XATTR_LEN(last->e_name_len); in ext4_xattr_free_space() 1322 return (*min_offs - ((void *)last - base) - sizeof(__u32)); in ext4_xattr_free_space() 1564 struct ext4_xattr_entry *last, *next; in ext4_xattr_set_entry() local 1598 last = s->first; in ext4_xattr_set_entry() 1599 for (; !IS_LAST_ENTRY(last); last = next) { in ext4_xattr_set_entry() 1600 next = EXT4_XATTR_NEXT(last); in ext4_xattr_set_entry() [all …]
|
D | resize.c | 127 #define outside(b, first, last) ((b) < (first) || (b) >= (last)) argument 128 #define inside(b, first, last) ((b) >= (first) && (b) < (last)) argument 1113 ext4_group_t last; in update_backups() local 1132 last = sbi->s_groups_count; in update_backups() 1135 last = (ext4_group_t)(group + EXT4_DESC_PER_BLOCK(sb) - 2); in update_backups() 1179 else if (group == last) in update_backups() 1182 group = last; in update_backups() 1486 ext4_grpblk_t last; in ext4_flex_group_add() local 1496 ext4_get_group_no_and_offset(sb, o_blocks_count, &group, &last); in ext4_flex_group_add() 1497 BUG_ON(last); in ext4_flex_group_add() [all …]
|
/fs/btrfs/ |
D | inode-map.c | 37 u64 last = (u64)-1; in caching_kthread() local 92 root->ino_cache_progress = last; in caching_kthread() 108 if (last != (u64)-1 && last + 1 != key.objectid) { in caching_kthread() 109 __btrfs_add_free_space(fs_info, ctl, last + 1, in caching_kthread() 110 key.objectid - last - 1, 0); in caching_kthread() 114 last = key.objectid; in caching_kthread() 119 if (last < root->highest_objectid - 1) { in caching_kthread() 120 __btrfs_add_free_space(fs_info, ctl, last + 1, in caching_kthread() 121 root->highest_objectid - last - 1, 0); in caching_kthread()
|
D | raid56.c | 555 static int rbio_can_merge(struct btrfs_raid_bio *last, in rbio_can_merge() argument 558 if (test_bit(RBIO_RMW_LOCKED_BIT, &last->flags) || in rbio_can_merge() 569 if (test_bit(RBIO_CACHE_BIT, &last->flags) || in rbio_can_merge() 573 if (last->bbio->raid_map[0] != in rbio_can_merge() 578 if (last->operation != cur->operation) in rbio_can_merge() 588 if (last->operation == BTRFS_RBIO_PARITY_SCRUB) in rbio_can_merge() 591 if (last->operation == BTRFS_RBIO_REBUILD_MISSING) in rbio_can_merge() 594 if (last->operation == BTRFS_RBIO_READ_REBUILD) { in rbio_can_merge() 595 int fa = last->faila; in rbio_can_merge() 596 int fb = last->failb; in rbio_can_merge() [all …]
|
/fs/ |
D | binfmt_script.c | 19 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() 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()
|
D | namei.c | 507 struct qstr last; member 587 struct saved *last = nd->stack + i; in drop_links() local 588 do_delayed_call(&last->done); in drop_links() 589 clear_delayed_call(&last->done); in drop_links() 646 struct saved *last = nd->stack + i; in legitimize_links() local 647 if (unlikely(!legitimize_path(nd, &last->link, last->seq))) { in legitimize_links() 1023 struct saved *last = nd->stack + --nd->depth; in put_link() local 1024 do_delayed_call(&last->done); in put_link() 1026 path_put(&last->link); in put_link() 1563 dentry = __d_lookup_rcu(parent, &nd->last, &seq); in lookup_fast() [all …]
|
/fs/adfs/ |
D | dir_f.c | 76 int last = 5 - 26; in adfs_dir_checkbyte() local 85 last += 26; in adfs_dir_checkbyte() 90 } while (i < (last & ~3)); in adfs_dir_checkbyte() 91 } while (dir_u8(last) != 0); in adfs_dir_checkbyte() 97 if (i != last) { in adfs_dir_checkbyte() 99 end.ptr8 = ptr.ptr8 + last - i; in adfs_dir_checkbyte()
|
/fs/reiserfs/ |
D | prints.c | 442 static int print_internal(struct buffer_head *bh, int first, int last) in print_internal() argument 459 to = last < B_NR_ITEMS(bh) ? last : B_NR_ITEMS(bh); in print_internal() 478 int last) in print_leaf() argument 509 if (last < 0 || last > nr) in print_leaf() 512 to = last; in print_leaf() 614 int mode, first, last; in print_block() local 625 last = 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()
|
/fs/hpfs/ |
D | dnode.c | 181 int c = hpfs_compare_names(s, name, namelen, de->name, de->namelen, de->last); in hpfs_add_de() 207 if (de->last) { in hpfs_delete_de() 405 if (!(c = hpfs_compare_names(i->i_sb, name, namelen, de->name, de->namelen, de->last))) { in hpfs_add_dirent() 603 if (!de->last) { in delete_empty_dnode() 717 if (de->first || de->last) { in hpfs_remove_dirent() 723 if (depth && (de->down || (de == dnode_first_de(dnode) && de_next_de(de)->last))) { in hpfs_remove_dirent() 764 if (de->last) { in hpfs_count_dnodes() 780 if (!de->first && !de->last && de->directory && n_subdirs) (*n_subdirs)++; in hpfs_count_dnodes() 781 if (!de->first && !de->last && n_items) (*n_items)++; in hpfs_count_dnodes() 811 if (de->last) break; in map_nth_dirent() [all …]
|
/fs/nfs/ |
D | nfs4renewd.c | 62 unsigned long last, now; in nfs4_renew_state() local 72 last = clp->cl_last_renewal; in nfs4_renew_state() 75 if (time_after(now, last + lease/3)) in nfs4_renew_state()
|
/fs/befs/ |
D | btree.c | 333 int first, last, mid; in befs_find_key() local 345 last = node->head.all_key_count - 1; in befs_find_key() 346 thiskey = befs_bt_get_key(sb, node, last, &keylen); 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() 375 last = mid - 1; in befs_find_key()
|
/fs/efs/ |
D | inode.c | 204 int cur, last, first = 1; in efs_map_block() local 209 last = in->lastextent; in efs_map_block() 213 if ((result = efs_extent_check(&in->extents[last], block, sb))) in efs_map_block() 229 cur = (last + dirext) % in->numextents; in efs_map_block() 246 cur = (last + indext) % indexts; in efs_map_block()
|
/fs/fat/ |
D | misc.c | 105 int ret, new_fclus, last; in fat_chain_add() local 111 last = new_fclus = 0; in fat_chain_add() 119 last = dclus; in fat_chain_add() 123 if (last) { in fat_chain_add() 127 ret = fat_ent_read(inode, &fatent, last); in fat_chain_add()
|
/fs/ubifs/ |
D | orphan.c | 240 struct ubifs_orphan *orphan, **last; in ubifs_orphan_start_commit() local 243 last = &c->orph_cnext; in ubifs_orphan_start_commit() 249 *last = orphan; in ubifs_orphan_start_commit() 250 last = &orphan->cnext; in ubifs_orphan_start_commit() 252 *last = NULL; in ubifs_orphan_start_commit() 447 struct ubifs_orphan *orphan, **last; in consolidate() local 451 last = &c->orph_cnext; in consolidate() 456 *last = orphan; in consolidate() 457 last = &orphan->cnext; in consolidate() 460 *last = NULL; in consolidate()
|
/fs/xfs/ |
D | xfs_buf_item.c | 774 uint last, in xfs_buf_item_log_segment() argument 788 ASSERT(last < XFS_BLF_DATAMAP_SIZE * XFS_BLF_CHUNK * NBWORD); in xfs_buf_item_log_segment() 794 last_bit = last >> XFS_BLF_SHIFT; in xfs_buf_item_log_segment() 859 uint last) in xfs_buf_item_log() argument 871 if (start > last) in xfs_buf_item_log() 889 if (end > last) in xfs_buf_item_log() 890 end = last; in xfs_buf_item_log()
|
/fs/iomap/ |
D | buffered-io.c | 98 unsigned last = (poff + plen - 1) >> block_bits; in iomap_adjust_read_range() local 109 for (i = first; i <= last; i++) { in iomap_adjust_read_range() 119 for ( ; i <= last; i++) { in iomap_adjust_read_range() 121 plen -= (last - i + 1) * block_size; in iomap_adjust_read_range() 122 last = i - 1; in iomap_adjust_read_range() 136 if (first <= end && last > end) in iomap_adjust_read_range() 137 plen -= (last - end) * block_size; in iomap_adjust_read_range() 150 unsigned last = (off + len - 1) >> 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 [all …]
|
/fs/jfs/ |
D | jfs_txnmgr.c | 423 tblk->next = tblk->last = tblk->xflag = tblk->flag = tblk->lsn = 0; in txBegin() 657 lid_t last; in txLock() local 658 for (last = jfs_ip->atlhead; in txLock() 659 lid_to_tlock(last)->next != lid; in txLock() 660 last = lid_to_tlock(last)->next) { in txLock() 661 assert(last); in txLock() 663 lid_to_tlock(last)->next = tlck->next; in txLock() 665 jfs_ip->atltail = last; in txLock() 671 lid_to_tlock(tblk->last)->next = lid; in txLock() 675 tblk->last = lid; in txLock() [all …]
|
/fs/omfs/ |
D | file.c | 37 u64 next, last; in omfs_shrink_inode() local 69 last = next; in omfs_shrink_inode() 86 if (last != inode->i_ino) in omfs_shrink_inode() 87 omfs_clear_range(inode->i_sb, last, sbi->s_mirrors); in omfs_shrink_inode()
|