Home
last modified time | relevance | path

Searched refs:branch (Results 1 – 6 of 6) sorted by relevance

/fs/sysv/
Ditree.c128 Indirect *branch) in alloc_branch() argument
134 branch[0].key = sysv_new_block(inode->i_sb); in alloc_branch()
135 if (branch[0].key) for (n = 1; n < num; n++) { in alloc_branch()
139 branch[n].key = sysv_new_block(inode->i_sb); in alloc_branch()
140 if (!branch[n].key) in alloc_branch()
146 parent = block_to_cpu(SYSV_SB(inode->i_sb), branch[n-1].key); in alloc_branch()
149 sysv_free_block(inode->i_sb, branch[n].key); in alloc_branch()
154 branch[n].bh = bh; in alloc_branch()
155 branch[n].p = (sysv_zone_t*) bh->b_data + offsets[n]; in alloc_branch()
156 *branch[n].p = branch[n].key; in alloc_branch()
[all …]
/fs/minix/
Ditree_common.c73 Indirect *branch) in alloc_branch() argument
80 branch[0].key = cpu_to_block(parent); in alloc_branch()
87 branch[n].key = cpu_to_block(nr); in alloc_branch()
96 branch[n].bh = bh; in alloc_branch()
97 branch[n].p = (block_t*) bh->b_data + offsets[n]; in alloc_branch()
98 *branch[n].p = branch[n].key; in alloc_branch()
109 bforget(branch[i].bh); in alloc_branch()
111 minix_free_block(inode, block_to_cpu(branch[i].key)); in alloc_branch()
/fs/ubifs/
Dlpt.c1205 struct ubifs_nbranch *branch = NULL; in ubifs_read_nnode() local
1211 branch = &parent->nbranch[iip]; in ubifs_read_nnode()
1212 lnum = branch->lnum; in ubifs_read_nnode()
1213 offs = branch->offs; in ubifs_read_nnode()
1246 branch->nnode = nnode; in ubifs_read_nnode()
1273 struct ubifs_nbranch *branch; in read_pnode() local
1278 branch = &parent->nbranch[iip]; in read_pnode()
1279 lnum = branch->lnum; in read_pnode()
1280 offs = branch->offs; in read_pnode()
1314 branch->pnode = pnode; in read_pnode()
[all …]
Dlpt_commit.c869 struct ubifs_nbranch *branch; in make_nnode_dirty() local
871 branch = &nnode->parent->nbranch[nnode->iip]; in make_nnode_dirty()
872 if (branch->lnum != lnum || branch->offs != offs) in make_nnode_dirty()
913 struct ubifs_nbranch *branch; in make_pnode_dirty() local
918 branch = &pnode->parent->nbranch[pnode->iip]; in make_pnode_dirty()
919 if (branch->lnum != lnum || branch->offs != offs) in make_pnode_dirty()
1484 struct ubifs_nbranch *branch; in dbg_is_nnode_dirty() local
1488 branch = &nnode->parent->nbranch[nnode->iip]; in dbg_is_nnode_dirty()
1489 if (branch->lnum != lnum || branch->offs != offs) in dbg_is_nnode_dirty()
1518 struct ubifs_nbranch *branch; in dbg_is_pnode_dirty() local
[all …]
/fs/ext4/
Dindirect.c277 static int ext4_blks_to_allocate(Indirect *branch, int k, unsigned int blks, in ext4_blks_to_allocate() argument
297 le32_to_cpu(*(branch[0].p + count)) == 0) { in ext4_blks_to_allocate()
331 Indirect *branch) in ext4_alloc_branch() argument
347 branch[i+1].bh = NULL; in ext4_alloc_branch()
353 branch[i].key = cpu_to_le32(new_blocks[i]); in ext4_alloc_branch()
357 bh = branch[i].bh = sb_getblk(ar->inode->i_sb, new_blocks[i-1]); in ext4_alloc_branch()
372 p = branch[i].p = (__le32 *) bh->b_data + offsets[i]; in ext4_alloc_branch()
407 ext4_free_blocks(handle, ar->inode, branch[i+1].bh, in ext4_alloc_branch()
409 branch[i+1].bh ? EXT4_FREE_BLOCKS_FORGET : 0); in ext4_alloc_branch()
/fs/ext2/
Dinode.c361 ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, in ext2_blks_to_allocate() argument
381 && le32_to_cpu(*(branch[0].p + count)) == 0) { in ext2_blks_to_allocate()
477 int *offsets, Indirect *branch) in ext2_alloc_branch() argument
492 branch[0].key = cpu_to_le32(new_blocks[0]); in ext2_alloc_branch()
507 branch[n].bh = bh; in ext2_alloc_branch()
510 branch[n].p = (__le32 *) bh->b_data + offsets[n]; in ext2_alloc_branch()
511 branch[n].key = cpu_to_le32(new_blocks[n]); in ext2_alloc_branch()
512 *branch[n].p = branch[n].key; in ext2_alloc_branch()
521 *(branch[n].p + i) = cpu_to_le32(++current_block); in ext2_alloc_branch()
538 bforget(branch[i].bh); in ext2_alloc_branch()