Home
last modified time | relevance | path

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

12345

/fs/xfs/
Dxfs_fs_subr.c32 xfs_off_t last, in xfs_tosspages() argument
36 last &= ~(PAGE_SIZE - 1); in xfs_tosspages()
37 truncate_inode_pages_range(VFS_I(ip)->i_mapping, first, last - 1); in xfs_tosspages()
44 xfs_off_t last, in xfs_flushinval_pages() argument
50 trace_xfs_pagecache_inval(ip, first, last); in xfs_flushinval_pages()
54 last == -1 ? LLONG_MAX : last); in xfs_flushinval_pages()
56 truncate_inode_pages_range(mapping, first, last); in xfs_flushinval_pages()
64 xfs_off_t last, in xfs_flush_pages() argument
74 last == -1 ? LLONG_MAX : last); in xfs_flush_pages()
77 ret2 = xfs_wait_on_pages(ip, first, last); in xfs_flush_pages()
[all …]
Dxfs_vnodeops.h52 xfs_off_t last, int fiopt);
54 xfs_off_t last, int fiopt);
56 xfs_off_t last, uint64_t flags, int fiopt);
57 int xfs_wait_on_pages(struct xfs_inode *ip, xfs_off_t first, xfs_off_t last);
Dxfs_buf_item.c56 uint last) in xfs_buf_item_log_debug() argument
69 nbytes = last - first + 1; in xfs_buf_item_log_debug()
91 uint last) in xfs_buf_item_flush_log_debug() argument
100 nbytes = last - first + 1; in xfs_buf_item_flush_log_debug()
751 uint last) in xfs_buf_item_log() argument
773 last_bit = last >> XFS_BLF_SHIFT; in xfs_buf_item_log()
829 xfs_buf_item_log_debug(bip, first, last); in xfs_buf_item_log()
Dxfs_buf_item.h123 uint last);
125 #define xfs_buf_item_flush_log_debug(bp, first, last) argument
/fs/afs/
Dcmservice.c163 bool last) in afs_deliver_cb_callback() argument
172 _enter("{%u},{%u},%d", call->unmarshall, skb->len, last); in afs_deliver_cb_callback()
182 ret = afs_extract_data(call, skb, last, &call->tmp, 4); in afs_deliver_cb_callback()
202 ret = afs_extract_data(call, skb, last, call->buffer, in afs_deliver_cb_callback()
232 ret = afs_extract_data(call, skb, last, &call->tmp, 4); in afs_deliver_cb_callback()
250 ret = afs_extract_data(call, skb, last, call->request, in afs_deliver_cb_callback()
278 if (!last) in afs_deliver_cb_callback()
315 bool last) in afs_deliver_cb_init_call_back_state() argument
320 _enter(",{%u},%d", skb->len, last); in afs_deliver_cb_init_call_back_state()
324 if (!last) in afs_deliver_cb_init_call_back_state()
[all …]
Dwrite.c138 candidate->first = candidate->last = index; in afs_write_begin()
180 if (wb->last == index - 1 && wb->key == key && in afs_write_begin()
196 ASSERTRANGE(wb->first, <=, index, <=, wb->last); in afs_write_begin()
199 if (index == wb->last && to > wb->to_last) in afs_write_begin()
207 _debug("append into %lx-%lx", wb->first, wb->last); in afs_write_begin()
209 wb->last++; in afs_write_begin()
278 pgoff_t first, pgoff_t last) in afs_kill_pages() argument
284 vnode->fid.vid, vnode->fid.vnode, first, last); in afs_kill_pages()
289 _debug("kill %lx-%lx", first, last); in afs_kill_pages()
291 count = last - first + 1; in afs_kill_pages()
[all …]
Dfsclient.c233 struct sk_buff *skb, bool last) in afs_deliver_fs_fetch_status() argument
238 _enter(",,%u", last); in afs_deliver_fs_fetch_status()
241 if (!last) in afs_deliver_fs_fetch_status()
307 struct sk_buff *skb, bool last) in afs_deliver_fs_fetch_data() argument
315 _enter("{%u},{%u},%d", call->unmarshall, skb->len, last); in afs_deliver_fs_fetch_data()
331 ret = afs_extract_data(call, skb, last, &call->tmp, 4); in afs_deliver_fs_fetch_data()
349 ret = afs_extract_data(call, skb, last, &call->tmp, 4); in afs_deliver_fs_fetch_data()
369 ret = afs_extract_data(call, skb, last, buffer, in afs_deliver_fs_fetch_data()
384 ret = afs_extract_data(call, skb, last, call->buffer, in afs_deliver_fs_fetch_data()
408 if (!last) in afs_deliver_fs_fetch_data()
[all …]
Drxrpc.c249 pgoff_t first = call->first, last = call->last; in afs_send_pages() local
258 _debug("attach %lx-%lx", first, last); in afs_send_pages()
260 count = last - first + 1; in afs_send_pages()
270 if (first + loop >= last) in afs_send_pages()
286 if (first + loop >= last) in afs_send_pages()
300 } while (first <= last); in afs_send_pages()
432 bool last; in afs_deliver_to_call() local
446 last = rxrpc_kernel_is_data_last(skb); in afs_deliver_to_call()
447 ret = call->type->deliver(call, skb, last); in afs_deliver_to_call()
450 if (last && in afs_deliver_to_call()
[all …]
/fs/ext4/
Dxattr.c511 static size_t ext4_xattr_free_space(struct ext4_xattr_entry *last, in ext4_xattr_free_space() argument
514 for (; !IS_LAST_ENTRY(last); last = EXT4_XATTR_NEXT(last)) { in ext4_xattr_free_space()
515 *total += EXT4_XATTR_LEN(last->e_name_len); in ext4_xattr_free_space()
516 if (!last->e_value_block && last->e_value_size) { in ext4_xattr_free_space()
517 size_t offs = le16_to_cpu(last->e_value_offs); in ext4_xattr_free_space()
522 return (*min_offs - ((void *)last - base) - sizeof(__u32)); in ext4_xattr_free_space()
543 struct ext4_xattr_entry *last; in ext4_xattr_set_entry() local
547 last = s->first; in ext4_xattr_set_entry()
548 for (; !IS_LAST_ENTRY(last); last = EXT4_XATTR_NEXT(last)) { in ext4_xattr_set_entry()
549 if (!last->e_value_block && last->e_value_size) { in ext4_xattr_set_entry()
[all …]
Dresize.c48 #define outside(b, first, last) ((b) < (first) || (b) >= (last)) argument
49 #define inside(b, first, last) ((b) >= (first) && (b) < (last)) argument
965 const ext4_group_t last = sbi->s_groups_count; in update_backups() local
982 while ((group = ext4_list_backups(sb, &three, &five, &seven)) < last) { in update_backups()
1252 ext4_grpblk_t last; in ext4_flex_group_add() local
1262 ext4_get_group_no_and_offset(sb, o_blocks_count, &group, &last); in ext4_flex_group_add()
1263 BUG_ON(last); in ext4_flex_group_add()
1336 ext4_grpblk_t last; in ext4_setup_next_flex_gd() local
1347 ext4_get_group_no_and_offset(sb, o_blocks_count, &group, &last); in ext4_setup_next_flex_gd()
1348 BUG_ON(last); in ext4_setup_next_flex_gd()
[all …]
/fs/ext2/
Dxattr.c365 struct ext2_xattr_entry *here, *last; in ext2_xattr_set() local
432 last = here; in ext2_xattr_set()
434 while (!IS_LAST_ENTRY(last)) { in ext2_xattr_set()
435 struct ext2_xattr_entry *next = EXT2_XATTR_NEXT(last); in ext2_xattr_set()
438 if (!last->e_value_block && last->e_value_size) { in ext2_xattr_set()
439 size_t offs = le16_to_cpu(last->e_value_offs); in ext2_xattr_set()
443 last = next; in ext2_xattr_set()
447 free = min_offs - ((char*)last - (char*)header) - sizeof(__u32); in ext2_xattr_set()
452 here = last = NULL; /* avoid gcc uninitialized warning. */ in ext2_xattr_set()
512 offset = (char *)last - bh->b_data; in ext2_xattr_set()
[all …]
/fs/btrfs/
Dinode-map.c37 u64 last = (u64)-1; in caching_kthread() local
92 root->cache_progress = last; in caching_kthread()
108 if (last != (u64)-1 && last + 1 != key.objectid) { in caching_kthread()
109 __btrfs_add_free_space(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(ctl, last + 1, in caching_kthread()
121 root->highest_objectid - last - 1); in caching_kthread()
/fs/proc/
Dnamespaces.c225 const struct proc_ns_operations **entry, **last; in proc_ns_dir_readdir() local
257 last = &ns_entries[ARRAY_SIZE(ns_entries) - 1]; in proc_ns_dir_readdir()
258 while (entry <= last) { in proc_ns_dir_readdir()
284 const struct proc_ns_operations **entry, **last; in proc_ns_dir_lookup() local
292 last = &ns_entries[ARRAY_SIZE(ns_entries)]; in proc_ns_dir_lookup()
293 for (entry = ns_entries; entry < last; entry++) { in proc_ns_dir_lookup()
299 if (entry == last) in proc_ns_dir_lookup()
/fs/ext3/
Dxattr.c528 struct ext3_xattr_entry *last; in ext3_xattr_set_entry() local
532 last = s->first; in ext3_xattr_set_entry()
533 for (; !IS_LAST_ENTRY(last); last = EXT3_XATTR_NEXT(last)) { in ext3_xattr_set_entry()
534 if (!last->e_value_block && last->e_value_size) { in ext3_xattr_set_entry()
535 size_t offs = le16_to_cpu(last->e_value_offs); in ext3_xattr_set_entry()
540 free = min_offs - ((void *)last - s->base) - sizeof(__u32); in ext3_xattr_set_entry()
558 size_t rest = (void *)last - (void *)s->here + sizeof(__u32); in ext3_xattr_set_entry()
591 last = s->first; in ext3_xattr_set_entry()
592 while (!IS_LAST_ENTRY(last)) { in ext3_xattr_set_entry()
593 size_t o = le16_to_cpu(last->e_value_offs); in ext3_xattr_set_entry()
[all …]
/fs/reiserfs/
Dprints.c416 static int print_internal(struct buffer_head *bh, int first, int last) in print_internal() argument
433 to = last < B_NR_ITEMS(bh) ? last : B_NR_ITEMS(bh); in print_internal()
452 int last) in print_leaf() argument
483 if (last < 0 || last > nr) in print_leaf()
486 to = last; in print_leaf()
587 int mode, first, last; in print_block() local
598 last = va_arg(args, int); in print_block()
599 if (print_leaf(bh, mode, first, last)) in print_block()
600 if (print_internal(bh, first, last)) in print_block()
/fs/fat/
Dmisc.c108 int ret, new_fclus, last; in fat_chain_add() local
114 last = new_fclus = 0; in fat_chain_add()
122 last = dclus; in fat_chain_add()
126 if (last) { in fat_chain_add()
130 ret = fat_ent_read(inode, &fatent, last); in fat_chain_add()
/fs/nfs/
Dnfs4renewd.c62 unsigned long last, now; in nfs4_renew_state() local
73 last = clp->cl_last_renewal; in nfs4_renew_state()
76 if (time_after(now, last + lease/3)) in nfs4_renew_state()
/fs/notify/
Dvfsmount_mark.c149 struct hlist_node *node, *last = NULL; in fsnotify_add_vfsmount_mark() local
169 last = node; in fsnotify_add_vfsmount_mark()
187 BUG_ON(last == NULL); in fsnotify_add_vfsmount_mark()
189 hlist_add_after_rcu(last, &mark->m.m_list); in fsnotify_add_vfsmount_mark()
Dinode_mark.c189 struct hlist_node *node, *last = NULL; in fsnotify_add_inode_mark() local
209 last = node; in fsnotify_add_inode_mark()
227 BUG_ON(last == NULL); in fsnotify_add_inode_mark()
229 hlist_add_after_rcu(last, &mark->i.i_list); in fsnotify_add_inode_mark()
/fs/ubifs/
Dorphan.c173 struct ubifs_orphan *orphan, **last; in ubifs_orphan_start_commit() local
176 last = &c->orph_cnext; in ubifs_orphan_start_commit()
180 *last = orphan; in ubifs_orphan_start_commit()
181 last = &orphan->cnext; in ubifs_orphan_start_commit()
183 *last = orphan->cnext; in ubifs_orphan_start_commit()
378 struct ubifs_orphan *orphan, **last; in consolidate() local
382 last = &c->orph_cnext; in consolidate()
386 *last = orphan; in consolidate()
387 last = &orphan->cnext; in consolidate()
390 *last = orphan->cnext; in consolidate()
/fs/befs/
Dbtree.c339 int first, last, mid; in befs_find_key() local
353 last = node->head.all_key_count - 1; in befs_find_key()
354 thiskey = befs_bt_get_key(sb, node, last, &keylen); 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()
383 last = mid - 1; in befs_find_key()
/fs/efs/
Dinode.c205 int cur, last, first = 1; in efs_map_block() local
210 last = in->lastextent; in efs_map_block()
214 if ((result = efs_extent_check(&in->extents[last], block, sb))) in efs_map_block()
230 cur = (last + dirext) % in->numextents; in efs_map_block()
248 cur = (last + indext) % indexts; in efs_map_block()
/fs/hpfs/
Ddnode.c170 int c = hpfs_compare_names(s, name, namelen, de->name, de->namelen, de->last); in hpfs_add_de()
196 if (de->last) { in hpfs_delete_de()
394 if (!(c = hpfs_compare_names(i->i_sb, name, namelen, de->name, de->namelen, de->last))) { in hpfs_add_dirent()
592 if (!de->last) { in delete_empty_dnode()
705 if (de->first || de->last) { in hpfs_remove_dirent()
711 if (depth && (de->down || (de == dnode_first_de(dnode) && de_next_de(de)->last))) { in hpfs_remove_dirent()
753 if (de->last) { in hpfs_count_dnodes()
769 if (!de->first && !de->last && de->directory && n_subdirs) (*n_subdirs)++; in hpfs_count_dnodes()
770 if (!de->first && !de->last && n_items) (*n_items)++; in hpfs_count_dnodes()
800 if (de->last) break; in map_nth_dirent()
[all …]
/fs/adfs/
Ddir_f.c91 int last = 5 - 26; in adfs_dir_checkbyte() local
100 last += 26; in adfs_dir_checkbyte()
105 } while (i < (last & ~3)); in adfs_dir_checkbyte()
106 } while (dir_u8(last) != 0); in adfs_dir_checkbyte()
112 if (i != last) { in adfs_dir_checkbyte()
114 end.ptr8 = ptr.ptr8 + last - i; in adfs_dir_checkbyte()
/fs/logfs/
Dsuper.c362 struct page *first, *last; in find_super_block() local
367 last = super->s_devops->find_last_sb(sb, &super->s_sb_ofs[1]); in find_super_block()
368 if (!last || IS_ERR(last)) { in find_super_block()
374 page_cache_release(last); in find_super_block()
379 if (!logfs_check_ds(page_address(last))) { in find_super_block()
381 return last; in find_super_block()
386 page_cache_release(last); in find_super_block()

12345