Home
last modified time | relevance | path

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

/fs/sysv/
Ditree.c127 Indirect *branch) in alloc_branch() argument
133 branch[0].key = sysv_new_block(inode->i_sb); in alloc_branch()
134 if (branch[0].key) for (n = 1; n < num; n++) { in alloc_branch()
138 branch[n].key = sysv_new_block(inode->i_sb); in alloc_branch()
139 if (!branch[n].key) in alloc_branch()
145 parent = block_to_cpu(SYSV_SB(inode->i_sb), branch[n-1].key); in alloc_branch()
149 branch[n].bh = bh; in alloc_branch()
150 branch[n].p = (sysv_zone_t*) bh->b_data + offsets[n]; in alloc_branch()
151 *branch[n].p = branch[n].key; in alloc_branch()
161 bforget(branch[i].bh); in alloc_branch()
[all …]
/fs/ubifs/
Dlpt.c1194 struct ubifs_nbranch *branch = NULL; in ubifs_read_nnode() local
1200 branch = &parent->nbranch[iip]; in ubifs_read_nnode()
1201 lnum = branch->lnum; in ubifs_read_nnode()
1202 offs = branch->offs; in ubifs_read_nnode()
1235 branch->nnode = nnode; in ubifs_read_nnode()
1262 struct ubifs_nbranch *branch; in read_pnode() local
1267 branch = &parent->nbranch[iip]; in read_pnode()
1268 lnum = branch->lnum; in read_pnode()
1269 offs = branch->offs; in read_pnode()
1303 branch->pnode = pnode; in read_pnode()
[all …]
Dlpt_commit.c914 struct ubifs_nbranch *branch; in make_nnode_dirty() local
916 branch = &nnode->parent->nbranch[nnode->iip]; in make_nnode_dirty()
917 if (branch->lnum != lnum || branch->offs != offs) in make_nnode_dirty()
958 struct ubifs_nbranch *branch; in make_pnode_dirty() local
963 branch = &pnode->parent->nbranch[pnode->iip]; in make_pnode_dirty()
964 if (branch->lnum != lnum || branch->offs != offs) in make_pnode_dirty()
1525 struct ubifs_nbranch *branch; in dbg_is_nnode_dirty() local
1529 branch = &nnode->parent->nbranch[nnode->iip]; in dbg_is_nnode_dirty()
1530 if (branch->lnum != lnum || branch->offs != offs) in dbg_is_nnode_dirty()
1559 struct ubifs_nbranch *branch; in dbg_is_pnode_dirty() local
[all …]
/fs/minix/
Ditree_common.c72 Indirect *branch) in alloc_branch() argument
78 branch[0].key = cpu_to_block(parent); in alloc_branch()
85 branch[n].key = cpu_to_block(nr); in alloc_branch()
89 branch[n].bh = bh; in alloc_branch()
90 branch[n].p = (block_t*) bh->b_data + offsets[n]; in alloc_branch()
91 *branch[n].p = branch[n].key; in alloc_branch()
102 bforget(branch[i].bh); in alloc_branch()
104 minix_free_block(inode, block_to_cpu(branch[i].key)); in alloc_branch()
/fs/ext4/
Dindirect.c268 static int ext4_blks_to_allocate(Indirect *branch, int k, unsigned int blks, in ext4_blks_to_allocate() argument
288 le32_to_cpu(*(branch[0].p + count)) == 0) { in ext4_blks_to_allocate()
324 Indirect *branch) in ext4_alloc_branch() argument
343 branch[i].key = cpu_to_le32(new_blocks[i]); in ext4_alloc_branch()
347 bh = branch[i].bh = sb_getblk(ar->inode->i_sb, new_blocks[i-1]); in ext4_alloc_branch()
361 p = branch[i].p = (__le32 *) bh->b_data + offsets[i]; in ext4_alloc_branch()
387 if (i > 0 && i != indirect_blks && branch[i].bh) in ext4_alloc_branch()
388 ext4_forget(handle, 1, ar->inode, branch[i].bh, in ext4_alloc_branch()
389 branch[i].bh->b_blocknr); in ext4_alloc_branch()
/fs/ext2/
Dinode.c359 ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, in ext2_blks_to_allocate() argument
379 && le32_to_cpu(*(branch[0].p + count)) == 0) { in ext2_blks_to_allocate()
475 int *offsets, Indirect *branch) in ext2_alloc_branch() argument
490 branch[0].key = cpu_to_le32(new_blocks[0]); in ext2_alloc_branch()
505 branch[n].bh = bh; in ext2_alloc_branch()
508 branch[n].p = (__le32 *) bh->b_data + offsets[n]; in ext2_alloc_branch()
509 branch[n].key = cpu_to_le32(new_blocks[n]); in ext2_alloc_branch()
510 *branch[n].p = branch[n].key; in ext2_alloc_branch()
519 *(branch[n].p + i) = cpu_to_le32(++current_block); in ext2_alloc_branch()
536 bforget(branch[i].bh); in ext2_alloc_branch()
/fs/ext3/
Dinode.c535 static int ext3_blks_to_allocate(Indirect *branch, int k, unsigned long blks, in ext3_blks_to_allocate() argument
555 le32_to_cpu(*(branch[0].p + count)) == 0) { in ext3_blks_to_allocate()
655 int *offsets, Indirect *branch) in ext3_alloc_branch() argument
670 branch[0].key = cpu_to_le32(new_blocks[0]); in ext3_alloc_branch()
685 branch[n].bh = bh; in ext3_alloc_branch()
696 branch[n].p = (__le32 *) bh->b_data + offsets[n]; in ext3_alloc_branch()
697 branch[n].key = cpu_to_le32(new_blocks[n]); in ext3_alloc_branch()
698 *branch[n].p = branch[n].key; in ext3_alloc_branch()
707 *(branch[n].p + i) = cpu_to_le32(++current_block); in ext3_alloc_branch()
723 BUFFER_TRACE(branch[i].bh, "call journal_forget"); in ext3_alloc_branch()
[all …]