Home
last modified time | relevance | path

Searched refs:chain (Results 1 – 14 of 14) sorted by relevance

/fs/minix/
Ditree_common.c33 Indirect chain[DEPTH], in get_branch()
37 Indirect *p = chain; in get_branch()
42 add_chain (chain, NULL, i_data(inode) + *offsets); in get_branch()
50 if (!verify_chain(chain, p)) in get_branch()
110 Indirect chain[DEPTH], in splice_branch()
119 if (!verify_chain(chain, where-1) || *where->p) in splice_branch()
151 Indirect chain[DEPTH]; in get_block() local
160 partial = get_branch(inode, depth, offsets, chain, &err); in get_block()
165 map_bh(bh, inode->i_sb, block_to_cpu(chain[depth-1].key)); in get_block()
167 partial = chain+depth-1; /* the whole chain */ in get_block()
[all …]
/fs/ext4/
Dindirect.c146 Indirect chain[4], int *err) in ext4_get_branch()
149 Indirect *p = chain; in ext4_get_branch()
155 add_chain(chain, NULL, EXT4_I(inode)->i_data + *offsets); in ext4_get_branch()
516 Indirect chain[4]; in ext4_ind_map_blocks() local
533 partial = ext4_get_branch(inode, depth, offsets, chain, &err); in ext4_ind_map_blocks()
537 first_block = le32_to_cpu(chain[depth - 1].key); in ext4_ind_map_blocks()
543 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext4_ind_map_blocks()
565 for (i = partial - chain + 1; i < depth; i++) in ext4_ind_map_blocks()
601 indirect_blks = (chain + depth) - partial - 1; in ext4_ind_map_blocks()
614 offsets + (partial - chain), partial); in ext4_ind_map_blocks()
[all …]
/fs/sysv/
Ditree.c91 Indirect chain[], in get_branch() argument
95 Indirect *p = chain; in get_branch()
99 add_chain(chain, NULL, SYSV_I(inode)->i_data + *offsets); in get_branch()
107 if (!verify_chain(chain, p)) in get_branch()
169 Indirect chain[], in splice_branch() argument
177 if (!verify_chain(chain, where-1) || *where->p) in splice_branch()
207 Indirect chain[DEPTH]; in get_block() local
218 partial = get_branch(inode, depth, offsets, chain, &err); in get_block()
225 chain[depth-1].key)); in get_block()
227 partial = chain+depth-1; /* the whole chain */ in get_block()
[all …]
/fs/lockd/
Dhost.c37 #define for_each_host(host, chain, table) \ argument
38 for ((chain) = (table); \
39 (chain) < (table) + NLM_HOST_NRHASH; ++(chain)) \
40 hlist_for_each_entry((host), (chain), h_hash)
42 #define for_each_host_safe(host, next, chain, table) \ argument
43 for ((chain) = (table); \
44 (chain) < (table) + NLM_HOST_NRHASH; ++(chain)) \
46 (chain), h_hash)
237 struct hlist_head *chain; in nlmclnt_lookup_host() local
248 chain = &nlm_client_hosts[nlm_hash_address(sap)]; in nlmclnt_lookup_host()
[all …]
/fs/ext2/
Dinode.c237 Indirect chain[4], in ext2_get_branch()
241 Indirect *p = chain; in ext2_get_branch()
246 add_chain (chain, NULL, EXT2_I(inode)->i_data + *offsets); in ext2_get_branch()
254 if (!verify_chain(chain, p)) in ext2_get_branch()
630 Indirect chain[4]; in ext2_get_blocks() local
647 partial = ext2_get_branch(inode, depth, offsets, chain, &err); in ext2_get_blocks()
650 first_block = le32_to_cpu(chain[depth - 1].key); in ext2_get_blocks()
656 if (!verify_chain(chain, chain + depth - 1)) { in ext2_get_blocks()
665 partial = chain + depth - 1; in ext2_get_blocks()
668 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext2_get_blocks()
[all …]
/fs/ocfs2/
Dresize.c92 u16 chain, num_bits, backups = 0; in ocfs2_update_last_group_and_inode() local
137 chain = le16_to_cpu(group->bg_chain); in ocfs2_update_last_group_and_inode()
138 cr = (&cl->cl_recs[chain]); in ocfs2_update_last_group_and_inode()
386 if (le16_to_cpu(gd->bg_chain) != input->chain) in ocfs2_check_new_group()
390 le16_to_cpu(gd->bg_chain), input->chain); in ocfs2_check_new_group()
423 else if (input->chain >= cl_count) in ocfs2_verify_group_and_input()
425 else if (next_free != cl_count && next_free != input->chain) in ocfs2_verify_group_and_input()
510 input->chain, input->clusters, input->frees); in ocfs2_group_add()
521 cr = &cl->cl_recs[input->chain]; in ocfs2_group_add()
543 if (input->chain == le16_to_cpu(cl->cl_next_free_rec)) { in ocfs2_group_add()
Dsuballoc.c105 u16 chain);
1405 u16 chain) in ocfs2_relink_block_group() argument
1421 (unsigned long long)le64_to_cpu(fe->i_blkno), chain, in ocfs2_relink_block_group()
1442 bg->bg_next_group = fe->id2.i_chain.cl_recs[chain].c_blkno; in ocfs2_relink_block_group()
1450 fe->id2.i_chain.cl_recs[chain].c_blkno = bg->bg_blkno; in ocfs2_relink_block_group()
1580 u16 chain) in ocfs2_alloc_dinode_update_counts() argument
1596 le32_add_cpu(&cl->cl_recs[chain].c_free, -num_bits); in ocfs2_alloc_dinode_update_counts()
1606 u16 chain) in ocfs2_rollback_alloc_dinode_counts() argument
1615 le32_add_cpu(&cl->cl_recs[chain].c_free, num_bits); in ocfs2_rollback_alloc_dinode_counts()
1742 u16 chain; in ocfs2_search_chain() local
[all …]
Dsuballoc.h79 u16 chain);
83 u16 chain);
Docfs2_ioctl.h54 __u16 chain; /* Chain for this group */ member
Docfs2_trace.h797 TP_PROTO(unsigned long long i_blkno, unsigned int chain,
800 TP_ARGS(i_blkno, chain, bg_blkno, prev_blkno),
803 __field(unsigned int, chain)
809 __entry->chain = chain;
814 __entry->i_blkno, __entry->chain, __entry->bg_blkno,
/fs/affs/
Dinode.c391 __be32 chain; in affs_add_entry() local
392 chain = AFFS_TAIL(sb, inode_bh)->link_chain; in affs_add_entry()
394 AFFS_TAIL(sb, bh)->link_chain = chain; in affs_add_entry()
396 affs_adjust_checksum(inode_bh, block - be32_to_cpu(chain)); in affs_add_entry()
DChanges198 the pointer to the next entry in the hash chain wasn't
/fs/ufs/
Dinode.c131 Indirect chain[4], *q = chain; in ufs_frag_map() local
149 if (!grow_chain32(ufsi, NULL, &ufsi->i_u1.i_data[*p++], chain, q)) in ufs_frag_map()
163 if (!grow_chain32(ufsi, bh, ptr, chain, ++q)) in ufs_frag_map()
172 if (!grow_chain64(ufsi, NULL, &ufsi->i_u1.u2_i_data[*p++], chain, q)) in ufs_frag_map()
187 if (!grow_chain64(ufsi, bh, ptr, chain, ++q)) in ufs_frag_map()
196 while (q > chain) { in ufs_frag_map()
203 while (q > chain) { in ufs_frag_map()
/fs/
Dnamespace.c690 struct hlist_head *chain = mp_hash(dentry); in lookup_mountpoint() local
693 hlist_for_each_entry(mp, chain, m_hash) { in lookup_mountpoint()