Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 25 of 60) sorted by relevance

123

/fs/efs/
Ddir.c30 int slot, namelen; in efs_readdir() local
40 slot = filp->f_pos & 0xff; in efs_readdir()
60 while (slot < dirblock->slots) { in efs_readdir()
61 if (dirblock->space[slot] == 0) { in efs_readdir()
62 slot++; in efs_readdir()
66 dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot)); in efs_readdir()
73 …ddir(): block %d slot %d/%d: inode %u, name \"%s\", namelen %u\n", block, slot, dirblock->slots-1,… in efs_readdir()
77 filp->f_pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
84 printk(KERN_WARNING "EFS: directory entry %d exceeds directory block\n", slot); in efs_readdir()
85 slot++; in efs_readdir()
[all …]
Dnamei.c18 int slot, namelen; in efs_find_entry() local
44 for(slot = 0; slot < dirblock->slots; slot++) { in efs_find_entry()
45 dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot)); in efs_find_entry()
Defs.h106 #define EFS_SLOTAT(dir, slot) EFS_REALOFF((dir)->space[slot]) argument
/fs/dlm/
Dmember.c37 memb->slot = le16_to_cpu(rf->rf_our_slot); in dlm_slot_save()
43 struct dlm_slot *slot; in dlm_slots_copy_out() local
52 slot = &ls->ls_slots[i]; in dlm_slots_copy_out()
53 if (!slot->nodeid) in dlm_slots_copy_out()
55 ro->ro_nodeid = cpu_to_le32(slot->nodeid); in dlm_slots_copy_out()
56 ro->ro_slot = cpu_to_le16(slot->slot); in dlm_slots_copy_out()
83 array[i].slot, array[i].nodeid); in log_debug_slots()
138 memb->slot = ro->ro_slot; in dlm_slots_copy_in()
139 memb->slot_prev = memb->slot; in dlm_slots_copy_in()
144 if (ls->ls_slot && ls->ls_slot != memb->slot) { in dlm_slots_copy_in()
[all …]
/fs/nfs/
Dnfs4session.c39 struct nfs4_slot *slot = *p; in nfs4_shrink_slot_table() local
41 *p = slot->next; in nfs4_shrink_slot_table()
42 kfree(slot); in nfs4_shrink_slot_table()
62 void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot) in nfs4_free_slot() argument
64 u32 slotid = slot->slot_nr; in nfs4_free_slot()
86 struct nfs4_slot *slot; in nfs4_new_slot() local
88 slot = kzalloc(sizeof(*slot), gfp_mask); in nfs4_new_slot()
89 if (slot) { in nfs4_new_slot()
90 slot->table = tbl; in nfs4_new_slot()
91 slot->slot_nr = slotid; in nfs4_new_slot()
[all …]
Dcallback_proc.c302 struct nfs4_slot *slot; in validate_seqid() local
310 slot = tbl->slots + args->csa_slotid; in validate_seqid()
311 dprintk("%s slot table seqid: %d\n", __func__, slot->seq_nr); in validate_seqid()
314 if (likely(args->csa_sequenceid == slot->seq_nr + 1)) { in validate_seqid()
315 slot->seq_nr++; in validate_seqid()
320 if (args->csa_sequenceid == slot->seq_nr) { in validate_seqid()
333 if (args->csa_sequenceid == 1 && (slot->seq_nr + 1) == 0) { in validate_seqid()
334 slot->seq_nr = 1; in validate_seqid()
Dnfs4session.h80 extern void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot);
85 struct nfs4_slot *slot,
103 struct nfs4_slot *slot);
/fs/btrfs/
Dctree.c41 int level, int slot);
322 int slot; member
569 struct extent_buffer *eb, int slot, in __tree_mod_log_insert_key() argument
581 btrfs_node_key(eb, &tm->key, slot); in __tree_mod_log_insert_key()
582 tm->blockptr = btrfs_node_blockptr(eb, slot); in __tree_mod_log_insert_key()
585 tm->slot = slot; in __tree_mod_log_insert_key()
586 tm->generation = btrfs_node_ptr_generation(eb, slot); in __tree_mod_log_insert_key()
593 struct extent_buffer *eb, int slot, in tree_mod_log_insert_key_mask() argument
601 ret = __tree_mod_log_insert_key(fs_info, eb, slot, op, flags); in tree_mod_log_insert_key_mask()
609 int slot, enum mod_log_op op) in tree_mod_log_insert_key() argument
[all …]
Droot-tree.c32 void btrfs_read_root_item(struct extent_buffer *eb, int slot, in btrfs_read_root_item() argument
39 len = btrfs_item_size_nr(eb, slot); in btrfs_read_root_item()
40 read_extent_buffer(eb, item, btrfs_item_ptr_offset(eb, slot), in btrfs_read_root_item()
79 int slot; in btrfs_find_last_root() local
98 slot = path->slots[0] - 1; in btrfs_find_last_root()
99 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_last_root()
106 btrfs_read_root_item(l, slot, item); in btrfs_find_last_root()
134 int slot; in btrfs_update_root() local
157 slot = path->slots[0]; in btrfs_update_root()
158 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root()
[all …]
Dbackref.c69 int slot; in find_extent_in_eb() local
80 for (slot = 0; slot < nritems; ++slot) { in find_extent_in_eb()
81 btrfs_item_key_to_cpu(eb, &key, slot); in find_extent_in_eb()
84 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in find_extent_in_eb()
188 int slot; in add_all_parents() local
213 slot = path->slots[0]; in add_all_parents()
215 btrfs_item_key_to_cpu(eb, &key, slot); in add_all_parents()
221 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in add_all_parents()
604 int slot; in __add_inline_refs() local
617 slot = path->slots[0]; in __add_inline_refs()
[all …]
Dprint-tree.c59 static void print_extent_item(struct extent_buffer *eb, int slot) in print_extent_item() argument
69 u32 item_size = btrfs_item_size_nr(eb, slot); in print_extent_item()
77 ei0 = btrfs_item_ptr(eb, slot, struct btrfs_extent_item_v0); in print_extent_item()
86 ei = btrfs_item_ptr(eb, slot, struct btrfs_extent_item); in print_extent_item()
144 static void print_extent_ref_v0(struct extent_buffer *eb, int slot) in print_extent_ref_v0() argument
148 ref0 = btrfs_item_ptr(eb, slot, struct btrfs_extent_ref_v0); in print_extent_ref_v0()
Dinode-map.c38 int slot; in caching_kthread() local
69 slot = path->slots[0]; in caching_kthread()
70 if (slot >= btrfs_header_nritems(leaf)) { in caching_kthread()
100 btrfs_item_key_to_cpu(leaf, &key, slot); in caching_kthread()
529 int slot; in btrfs_find_highest_objectid() local
543 slot = path->slots[0] - 1; in btrfs_find_highest_objectid()
545 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_highest_objectid()
Dqgroup.c255 int slot; in btrfs_read_qgroup_config() local
284 slot = path->slots[0]; in btrfs_read_qgroup_config()
286 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config()
291 ptr = btrfs_item_ptr(l, slot, in btrfs_read_qgroup_config()
347 ptr = btrfs_item_ptr(l, slot, in btrfs_read_qgroup_config()
359 ptr = btrfs_item_ptr(l, slot, in btrfs_read_qgroup_config()
388 slot = path->slots[0]; in btrfs_read_qgroup_config()
390 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config()
635 int slot; in update_qgroup_limit_item() local
653 slot = path->slots[0]; in update_qgroup_limit_item()
[all …]
Dxattr.c227 int ret = 0, slot; in btrfs_listxattr() local
253 slot = path->slots[0]; in btrfs_listxattr()
256 if (slot >= btrfs_header_nritems(leaf)) { in btrfs_listxattr()
269 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_listxattr()
277 di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); in btrfs_listxattr()
Dsend.c769 int slot = path->slots[0]; in iterate_inode_ref() local
792 ptr = (unsigned long)btrfs_item_ptr(eb, slot, in iterate_inode_ref()
794 item = btrfs_item_nr(eb, slot); in iterate_inode_ref()
798 ptr = btrfs_item_ptr_offset(eb, slot); in iterate_inode_ref()
799 total = btrfs_item_size_nr(eb, slot); in iterate_inode_ref()
896 int slot; in iterate_dir_item() local
908 slot = path->slots[0]; in iterate_dir_item()
909 item = btrfs_item_nr(eb, slot); in iterate_dir_item()
910 di = btrfs_item_ptr(eb, slot, struct btrfs_dir_item); in iterate_dir_item()
2355 int slot; in send_utimes() local
[all …]
Drelocation.c618 int find_inline_backref(struct extent_buffer *leaf, int slot, in find_inline_backref() argument
626 btrfs_item_key_to_cpu(leaf, &key, slot); in find_inline_backref()
628 item_size = btrfs_item_size_nr(leaf, slot); in find_inline_backref()
635 ei = btrfs_item_ptr(leaf, slot, struct btrfs_extent_item); in find_inline_backref()
1662 int memcmp_node_keys(struct extent_buffer *eb, int slot, argument
1667 btrfs_node_key(eb, &key1, slot);
1699 int slot; local
1706 slot = path->slots[lowest_level];
1707 btrfs_node_key_to_cpu(path->nodes[lowest_level], &key, slot);
1736 ret = btrfs_bin_search(parent, &key, level, &slot);
[all …]
/fs/ocfs2/cluster/
Dheartbeat.c488 unsigned int slot; in o2hb_issue_node_write() local
493 slot = o2nm_this_node(); in o2hb_issue_node_write()
495 bio = o2hb_setup_one_bio(reg, write_wc, &slot, slot+1); in o2hb_issue_node_write()
558 struct o2hb_disk_slot *slot; in o2hb_check_own_slot() local
562 slot = &reg->hr_slots[o2nm_this_node()]; in o2hb_check_own_slot()
564 if (!slot->ds_last_time) in o2hb_check_own_slot()
567 hb_block = slot->ds_raw_block; in o2hb_check_own_slot()
568 if (le64_to_cpu(hb_block->hb_seq) == slot->ds_last_time && in o2hb_check_own_slot()
569 le64_to_cpu(hb_block->hb_generation) == slot->ds_last_generation && in o2hb_check_own_slot()
570 hb_block->hb_node == slot->ds_node_num) in o2hb_check_own_slot()
[all …]
/fs/ocfs2/
Dsysfile.c44 u32 slot);
58 u32 slot) in get_local_system_inode() argument
63 BUG_ON(slot == OCFS2_INVALID_SLOT); in get_local_system_inode()
97 index = (slot * NUM_LOCAL_SYSTEM_INODES) + in get_local_system_inode()
105 u32 slot) in ocfs2_get_system_file_inode() argument
114 arr = get_local_system_inode(osb, type, slot); in ocfs2_get_system_file_inode()
125 inode = _ocfs2_get_system_file_inode(osb, type, slot); in ocfs2_get_system_file_inode()
137 u32 slot) in _ocfs2_get_system_file_inode() argument
146 type, slot); in _ocfs2_get_system_file_inode()
Dslot_map.c291 int slot; in ocfs2_node_num_to_slot() local
295 slot = __ocfs2_node_num_to_slot(si, node_num); in ocfs2_node_num_to_slot()
298 return slot; in ocfs2_node_num_to_slot()
472 int slot; in ocfs2_find_slot() local
484 slot = __ocfs2_node_num_to_slot(si, osb->node_num); in ocfs2_find_slot()
485 if (slot < 0) { in ocfs2_find_slot()
488 slot = __ocfs2_find_empty_slot(si, osb->preferred_slot); in ocfs2_find_slot()
489 if (slot < 0) { in ocfs2_find_slot()
497 "allocated to this node!\n", slot, osb->dev_str); in ocfs2_find_slot()
499 ocfs2_set_slot(si, slot, osb->node_num); in ocfs2_find_slot()
[all …]
Djournal.c71 int slot);
982 int slot) in ocfs2_clear_journal_error() argument
989 "journal %u.\n", olderr, slot); in ocfs2_clear_journal_error()
1975 int slot, in ocfs2_queue_orphans() argument
1988 slot); in ocfs2_queue_orphans()
2020 int slot) in ocfs2_orphan_recovery_can_continue() argument
2025 ret = !osb->osb_orphan_wipes[slot]; in ocfs2_orphan_recovery_can_continue()
2031 int slot) in ocfs2_mark_recovering_orphan_dir() argument
2036 ocfs2_node_map_set_bit(osb, &osb->osb_recovering_orphan_dirs, slot); in ocfs2_mark_recovering_orphan_dir()
2037 while (osb->osb_orphan_wipes[slot]) { in ocfs2_mark_recovering_orphan_dir()
[all …]
Dsuballoc.c804 u32 slot, in ocfs2_reserve_suballoc_bits() argument
815 alloc_inode = ocfs2_get_system_file_inode(osb, type, slot); in ocfs2_reserve_suballoc_bits()
833 ac->ac_alloc_slot = slot; in ocfs2_reserve_suballoc_bits()
862 slot, bits_wanted, free_bits); in ocfs2_reserve_suballoc_bits()
915 static void __ocfs2_set_steal_slot(struct ocfs2_super *osb, int slot, int type) in __ocfs2_set_steal_slot() argument
919 osb->s_inode_steal_slot = slot; in __ocfs2_set_steal_slot()
921 osb->s_meta_steal_slot = slot; in __ocfs2_set_steal_slot()
927 int slot = OCFS2_INVALID_SLOT; in __ocfs2_get_steal_slot() local
931 slot = osb->s_inode_steal_slot; in __ocfs2_get_steal_slot()
933 slot = osb->s_meta_steal_slot; in __ocfs2_get_steal_slot()
[all …]
/fs/jfs/
Djfs_dtree.c256 struct dir_table_slot *slot; in find_index() local
277 slot = &jfs_ip->i_dirtable[index - 2]; in find_index()
297 slot = in find_index()
301 return slot; in find_index()
334 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument
371 dirtab_slot->slot = slot; in add_index()
476 dirtab_slot->slot = slot; in add_index()
508 dirtab_slot->slot = dirtab_slot->addr1 = 0; in free_index()
525 int slot, struct metapage ** mp, s64 *lblock) in modify_index() argument
535 dirtab_slot->slot = slot; in modify_index()
[all …]
Djfs_dtree.h114 u8 slot; /* 1: slot within leaf page of entry */ member
159 struct dtslot slot[9]; member
210 struct dtslot slot[128]; member
236 (s8 *)&(p)->slot[(p)->header.stblindex] )
/fs/nfsd/
Dnfs4state.c1514 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_store_cache_entry() local
1517 dprintk("--> %s slot %p\n", __func__, slot); in nfsd4_store_cache_entry()
1519 slot->sl_opcnt = resp->opcnt; in nfsd4_store_cache_entry()
1520 slot->sl_status = resp->cstate.status; in nfsd4_store_cache_entry()
1522 slot->sl_flags |= NFSD4_SLOT_INITIALIZED; in nfsd4_store_cache_entry()
1524 slot->sl_datalen = 0; in nfsd4_store_cache_entry()
1527 slot->sl_datalen = (char *)resp->p - (char *)resp->cstate.datap; in nfsd4_store_cache_entry()
1530 if (read_bytes_from_xdr_buf(resp->xbuf, base, slot->sl_data, in nfsd4_store_cache_entry()
1531 slot->sl_datalen)) in nfsd4_store_cache_entry()
1548 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_enc_sequence_replay() local
[all …]
/fs/udf/
Dballoc.c81 int slot; in load_block_bitmap() local
83 slot = __load_block_bitmap(sb, bitmap, block_group); in load_block_bitmap()
85 if (slot < 0) in load_block_bitmap()
86 return slot; in load_block_bitmap()
88 if (!bitmap->s_block_bitmap[slot]) in load_block_bitmap()
91 return slot; in load_block_bitmap()

123