Home
last modified time | relevance | path

Searched refs:last (Results 1 – 25 of 109) sorted by relevance

12345

/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()
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()
288 _debug("redirty %lx-%lx", first, last); in afs_redirty_pages()
290 count = last - first + 1; in afs_redirty_pages()
306 } while (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()
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()
352 } while (first <= last); in afs_send_pages()
354 trace_afs_sent_pages(call, call->first, last, first, ret); in afs_send_pages()
389 if (call->last == call->first) { in afs_make_call()
398 tx_total_len += (call->last - call->first - 1) * PAGE_SIZE; in afs_make_call()
/fs/ext2/
Dxattr.c412 struct ext2_xattr_entry *here = NULL, *last = NULL; in ext2_xattr_set() local
464 last = FIRST_ENTRY(bh); in ext2_xattr_set()
465 while (!IS_LAST_ENTRY(last)) { in ext2_xattr_set()
466 if (!ext2_xattr_entry_valid(last, end, sb->s_blocksize)) in ext2_xattr_set()
468 if (last->e_value_size) { in ext2_xattr_set()
469 size_t offs = le16_to_cpu(last->e_value_offs); in ext2_xattr_set()
476 name, last); in ext2_xattr_set()
478 here = last; in ext2_xattr_set()
480 last = EXT2_XATTR_NEXT(last); in ext2_xattr_set()
483 here = last; in ext2_xattr_set()
[all …]
/fs/xfs/libxfs/
Dxfs_types.c70 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()
Dxfs_dir2.c597 xfs_fileoff_t last; /* last file offset */ in xfs_dir2_isblock() local
600 if ((rval = xfs_bmap_last_offset(args->dp, &last, XFS_DATA_FORK))) in xfs_dir2_isblock()
602 rval = XFS_FSB_TO_B(args->dp->i_mount, last) == args->geo->blksize; in xfs_dir2_isblock()
617 xfs_fileoff_t last; /* last file offset */ in xfs_dir2_isleaf() local
620 if ((rval = xfs_bmap_last_offset(args->dp, &last, XFS_DATA_FORK))) in xfs_dir2_isleaf()
622 *vp = last == args->geo->leafblk + args->geo->fsbcount; in xfs_dir2_isleaf()
/fs/proc/
Dnamespaces.c113 const struct proc_ns_operations **entry, **last; in proc_ns_dir_readdir() local
123 last = &ns_entries[ARRAY_SIZE(ns_entries) - 1]; in proc_ns_dir_readdir()
124 while (entry <= last) { in proc_ns_dir_readdir()
147 const struct proc_ns_operations **entry, **last; in proc_ns_dir_lookup() local
154 last = &ns_entries[ARRAY_SIZE(ns_entries)]; in proc_ns_dir_lookup()
155 for (entry = ns_entries; entry < last; entry++) { in proc_ns_dir_lookup()
161 if (entry == last) in proc_ns_dir_lookup()
Duid.c157 const struct uid_entry *u, *last; in proc_uid_base_lookup() local
163 last = &uid_base_stuff[nents - 1]; in proc_uid_base_lookup()
164 for (u = uid_base_stuff; u <= last; u++) { in proc_uid_base_lookup()
170 if (u > last) in proc_uid_base_lookup()
/fs/f2fs/
Dxattr.c610 struct f2fs_xattr_entry *here, *last; in __f2fs_setxattr() local
663 last = here; in __f2fs_setxattr()
664 while (!IS_XATTR_LAST_ENTRY(last)) in __f2fs_setxattr()
665 last = XATTR_NEXT_ENTRY(last); in __f2fs_setxattr()
676 free = MIN_OFFSET(inode) - ((char *)last - (char *)base_addr); in __f2fs_setxattr()
695 memmove(here, next, (char *)last - (char *)next); in __f2fs_setxattr()
696 last = (struct f2fs_xattr_entry *)((char *)last - oldsize); in __f2fs_setxattr()
697 memset(last, 0, oldsize); in __f2fs_setxattr()
700 new_hsize = (char *)last - (char *)base_addr; in __f2fs_setxattr()
709 last->e_name_index = index; in __f2fs_setxattr()
[all …]
/fs/ext4/
Dxattr.c1324 static size_t ext4_xattr_free_space(struct ext4_xattr_entry *last, in ext4_xattr_free_space() argument
1327 for (; !IS_LAST_ENTRY(last); last = EXT4_XATTR_NEXT(last)) { in ext4_xattr_free_space()
1328 if (!last->e_value_inum && last->e_value_size) { in ext4_xattr_free_space()
1329 size_t offs = le16_to_cpu(last->e_value_offs); in ext4_xattr_free_space()
1334 *total += EXT4_XATTR_LEN(last->e_name_len); in ext4_xattr_free_space()
1336 return (*min_offs - ((void *)last - base) - sizeof(__u32)); in ext4_xattr_free_space()
1565 struct ext4_xattr_entry *last, *next; in ext4_xattr_set_entry() local
1599 last = s->first; in ext4_xattr_set_entry()
1600 for (; !IS_LAST_ENTRY(last); last = next) { in ext4_xattr_set_entry()
1601 next = EXT4_XATTR_NEXT(last); in ext4_xattr_set_entry()
[all …]
Dresize.c85 #define outside(b, first, last) ((b) < (first) || (b) >= (last)) argument
86 #define inside(b, first, last) ((b) >= (first) && (b) < (last)) argument
1082 ext4_group_t last; in update_backups() local
1101 last = sbi->s_groups_count; in update_backups()
1104 last = (ext4_group_t)(group + EXT4_DESC_PER_BLOCK(sb) - 2); in update_backups()
1150 else if (group == last) in update_backups()
1153 group = last; in update_backups()
1452 ext4_grpblk_t last; in ext4_flex_group_add() local
1462 ext4_get_group_no_and_offset(sb, o_blocks_count, &group, &last); in ext4_flex_group_add()
1463 BUG_ON(last); in ext4_flex_group_add()
[all …]
/fs/btrfs/
Dinode-map.c37 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); 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); in caching_kthread()
Draid56.c554 static int rbio_can_merge(struct btrfs_raid_bio *last, in rbio_can_merge() argument
557 if (test_bit(RBIO_RMW_LOCKED_BIT, &last->flags) || in rbio_can_merge()
568 if (test_bit(RBIO_CACHE_BIT, &last->flags) || in rbio_can_merge()
572 if (last->bbio->raid_map[0] != in rbio_can_merge()
577 if (last->operation != cur->operation) in rbio_can_merge()
587 if (last->operation == BTRFS_RBIO_PARITY_SCRUB) in rbio_can_merge()
590 if (last->operation == BTRFS_RBIO_REBUILD_MISSING) in rbio_can_merge()
593 if (last->operation == BTRFS_RBIO_READ_REBUILD) { in rbio_can_merge()
594 int fa = last->faila; in rbio_can_merge()
595 int fb = last->failb; in rbio_can_merge()
[all …]
/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()
26 static inline char *next_terminator(char *first, const char *last) in next_terminator() argument
28 for (; first <= last; first++) in next_terminator()
Dnamei.c503 struct qstr last; member
598 struct saved *last = nd->stack + i; in drop_links() local
599 do_delayed_call(&last->done); in drop_links()
600 clear_delayed_call(&last->done); in drop_links()
645 struct saved *last = nd->stack + i; in legitimize_links() local
646 if (unlikely(!legitimize_path(nd, &last->link, last->seq))) { in legitimize_links()
968 struct saved *last = nd->stack + --nd->depth; in put_link() local
969 do_delayed_call(&last->done); in put_link()
971 path_put(&last->link); in put_link()
1137 struct saved *last = nd->stack + nd->depth - 1; in get_link() local
[all …]
/fs/reiserfs/
Dprints.c442 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/iomap/
Dbuffered-io.c74 unsigned last = (poff + plen - 1) >> block_bits; in iomap_adjust_read_range() local
85 for (i = first; i <= last; i++) { in iomap_adjust_read_range()
95 for ( ; i <= last; i++) { in iomap_adjust_read_range()
97 plen -= (last - i + 1) * block_size; in iomap_adjust_read_range()
98 last = i - 1; in iomap_adjust_read_range()
112 if (first <= end && last > end) in iomap_adjust_read_range()
113 plen -= (last - end) * block_size; in iomap_adjust_read_range()
126 unsigned last = (off + len - 1) >> inode->i_blkbits; in iomap_set_range_uptodate() local
132 if (i >= first && i <= last) in iomap_set_range_uptodate()
389 loff_t last = page_offset(list_entry(pages->next, struct page, lru)); in iomap_readpages() local
[all …]
/fs/hpfs/
Ddnode.c181 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/
Dnfs4renewd.c62 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/fat/
Dmisc.c105 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/befs/
Dbtree.c333 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/
Dinode.c204 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/ubifs/
Dorphan.c233 struct ubifs_orphan *orphan, **last; in ubifs_orphan_start_commit() local
236 last = &c->orph_cnext; in ubifs_orphan_start_commit()
242 *last = orphan; in ubifs_orphan_start_commit()
243 last = &orphan->cnext; in ubifs_orphan_start_commit()
245 *last = NULL; in ubifs_orphan_start_commit()
440 struct ubifs_orphan *orphan, **last; in consolidate() local
444 last = &c->orph_cnext; in consolidate()
449 *last = orphan; in consolidate()
450 last = &orphan->cnext; in consolidate()
453 *last = NULL; in consolidate()
/fs/adfs/
Ddir_f.c78 int last = 5 - 26; in adfs_dir_checkbyte() local
87 last += 26; in adfs_dir_checkbyte()
92 } while (i < (last & ~3)); in adfs_dir_checkbyte()
93 } while (dir_u8(last) != 0); in adfs_dir_checkbyte()
99 if (i != last) { in adfs_dir_checkbyte()
101 end.ptr8 = ptr.ptr8 + last - i; in adfs_dir_checkbyte()
/fs/jfs/
Djfs_txnmgr.c418 tblk->next = tblk->last = tblk->xflag = tblk->flag = tblk->lsn = 0; in txBegin()
652 lid_t last; in txLock() local
653 for (last = jfs_ip->atlhead; in txLock()
654 lid_to_tlock(last)->next != lid; in txLock()
655 last = lid_to_tlock(last)->next) { in txLock()
656 assert(last); in txLock()
658 lid_to_tlock(last)->next = tlck->next; in txLock()
660 jfs_ip->atltail = last; in txLock()
666 lid_to_tlock(tblk->last)->next = lid; in txLock()
670 tblk->last = lid; in txLock()
[all …]
/fs/omfs/
Dfile.c37 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()

12345