Home
last modified time | relevance | path

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

/fs/minix/
Ditree_common.c32 Indirect chain[DEPTH], in get_branch()
36 Indirect *p = chain; in get_branch()
41 add_chain (chain, NULL, i_data(inode) + *offsets); in get_branch()
49 if (!verify_chain(chain, p)) in get_branch()
109 Indirect chain[DEPTH], in splice_branch()
118 if (!verify_chain(chain, where-1) || *where->p) in splice_branch()
150 Indirect chain[DEPTH]; in get_block() local
159 partial = get_branch(inode, depth, offsets, chain, &err); in get_block()
164 map_bh(bh, inode->i_sb, block_to_cpu(chain[depth-1].key)); in get_block()
166 partial = chain+depth-1; /* the whole chain */ in get_block()
[all …]
/fs/sysv/
Ditree.c90 Indirect chain[], in get_branch() argument
94 Indirect *p = chain; in get_branch()
98 add_chain(chain, NULL, SYSV_I(inode)->i_data + *offsets); in get_branch()
106 if (!verify_chain(chain, p)) in get_branch()
168 Indirect chain[], in splice_branch() argument
176 if (!verify_chain(chain, where-1) || *where->p) in splice_branch()
206 Indirect chain[DEPTH]; in get_block() local
217 partial = get_branch(inode, depth, offsets, chain, &err); in get_block()
224 chain[depth-1].key)); in get_block()
226 partial = chain+depth-1; /* the whole chain */ in get_block()
[all …]
/fs/lockd/
Dhost.c33 #define for_each_host(host, pos, chain, table) \ argument
34 for ((chain) = (table); \
35 (chain) < (table) + NLM_HOST_NRHASH; ++(chain)) \
36 hlist_for_each_entry((host), (pos), (chain), h_hash)
38 #define for_each_host_safe(host, pos, next, chain, table) \ argument
39 for ((chain) = (table); \
40 (chain) < (table) + NLM_HOST_NRHASH; ++(chain)) \
42 (chain), h_hash)
227 struct hlist_head *chain; in nlmclnt_lookup_host() local
238 chain = &nlm_client_hosts[nlm_hash_address(sap)]; in nlmclnt_lookup_host()
[all …]
/fs/ext4/
Dindirect.c143 Indirect chain[4], int *err) in ext4_get_branch()
146 Indirect *p = chain; in ext4_get_branch()
151 add_chain(chain, NULL, EXT4_I(inode)->i_data + *offsets); in ext4_get_branch()
656 Indirect chain[4]; in ext4_ind_map_blocks() local
674 partial = ext4_get_branch(inode, depth, offsets, chain, &err); in ext4_ind_map_blocks()
678 first_block = le32_to_cpu(chain[depth - 1].key); in ext4_ind_map_blocks()
684 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext4_ind_map_blocks()
711 indirect_blks = (chain + depth) - partial - 1; in ext4_ind_map_blocks()
724 offsets + (partial - chain), partial); in ext4_ind_map_blocks()
744 map->m_pblk = le32_to_cpu(chain[depth-1].key); in ext4_ind_map_blocks()
[all …]
/fs/ext2/
Dinode.c228 Indirect chain[4], in ext2_get_branch()
232 Indirect *p = chain; in ext2_get_branch()
237 add_chain (chain, NULL, EXT2_I(inode)->i_data + *offsets); in ext2_get_branch()
245 if (!verify_chain(chain, p)) in ext2_get_branch()
607 Indirect chain[4]; in ext2_get_blocks() local
622 partial = ext2_get_branch(inode, depth, offsets, chain, &err); in ext2_get_blocks()
625 first_block = le32_to_cpu(chain[depth - 1].key); in ext2_get_blocks()
632 if (!verify_chain(chain, chain + depth - 1)) { in ext2_get_blocks()
643 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext2_get_blocks()
670 if (err == -EAGAIN || !verify_chain(chain, partial)) { in ext2_get_blocks()
[all …]
Dxip.h24 #define ext2_clear_xip_target(inode, chain) 0 argument
/fs/ocfs2/
Dresize.c101 u16 chain, num_bits, backups = 0; in ocfs2_update_last_group_and_inode() local
146 chain = le16_to_cpu(group->bg_chain); in ocfs2_update_last_group_and_inode()
147 cr = (&cl->cl_recs[chain]); in ocfs2_update_last_group_and_inode()
397 if (le16_to_cpu(gd->bg_chain) != input->chain) in ocfs2_check_new_group()
401 le16_to_cpu(gd->bg_chain), input->chain); in ocfs2_check_new_group()
434 else if (input->chain >= cl_count) in ocfs2_verify_group_and_input()
436 else if (next_free != cl_count && next_free != input->chain) in ocfs2_verify_group_and_input()
520 input->chain, input->clusters, input->frees); in ocfs2_group_add()
531 cr = &cl->cl_recs[input->chain]; in ocfs2_group_add()
551 if (input->chain == le16_to_cpu(cl->cl_next_free_rec)) { in ocfs2_group_add()
Dsuballoc.c127 u16 chain);
1420 u16 chain) in ocfs2_relink_block_group() argument
1436 (unsigned long long)le64_to_cpu(fe->i_blkno), chain, in ocfs2_relink_block_group()
1440 fe_ptr = le64_to_cpu(fe->id2.i_chain.cl_recs[chain].c_blkno); in ocfs2_relink_block_group()
1462 bg->bg_next_group = fe->id2.i_chain.cl_recs[chain].c_blkno; in ocfs2_relink_block_group()
1472 fe->id2.i_chain.cl_recs[chain].c_blkno = bg->bg_blkno; in ocfs2_relink_block_group()
1477 fe->id2.i_chain.cl_recs[chain].c_blkno = cpu_to_le64(fe_ptr); in ocfs2_relink_block_group()
1602 u16 chain) in ocfs2_alloc_dinode_update_counts() argument
1618 le32_add_cpu(&cl->cl_recs[chain].c_free, -num_bits); in ocfs2_alloc_dinode_update_counts()
1745 u16 chain; in ocfs2_search_chain() local
[all …]
Docfs2_ioctl.h62 __u16 chain; /* Chain for this group */ member
Docfs2_trace.h794 TP_PROTO(unsigned long long i_blkno, unsigned int chain,
797 TP_ARGS(i_blkno, chain, bg_blkno, prev_blkno),
800 __field(unsigned int, chain)
806 __entry->chain = chain;
811 __entry->i_blkno, __entry->chain, __entry->bg_blkno,
Dmove_extents.c568 u16 chain) in ocfs2_alloc_dinode_update_counts() argument
585 le32_add_cpu(&cl->cl_recs[chain].c_free, -num_bits); in ocfs2_alloc_dinode_update_counts()
/fs/ext3/
Dinode.c410 Indirect chain[4], int *err) in ext3_get_branch()
413 Indirect *p = chain; in ext3_get_branch()
418 add_chain (chain, NULL, EXT3_I(inode)->i_data + *offsets); in ext3_get_branch()
426 if (!verify_chain(chain, p)) in ext3_get_branch()
859 Indirect chain[4]; in ext3_get_blocks_handle() local
877 partial = ext3_get_branch(inode, depth, offsets, chain, &err); in ext3_get_blocks_handle()
881 first_block = le32_to_cpu(chain[depth - 1].key); in ext3_get_blocks_handle()
888 if (!verify_chain(chain, chain + depth - 1)) { in ext3_get_blocks_handle()
900 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext3_get_blocks_handle()
932 if (err == -EAGAIN || !verify_chain(chain, partial)) { in ext3_get_blocks_handle()
[all …]
/fs/affs/
Dinode.c383 __be32 chain; in affs_add_entry() local
384 chain = AFFS_TAIL(sb, inode_bh)->link_chain; in affs_add_entry()
386 AFFS_TAIL(sb, bh)->link_chain = chain; in affs_add_entry()
388 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