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.c1197 struct ubifs_nbranch *branch = NULL; in ubifs_read_nnode() local
1203 branch = &parent->nbranch[iip]; in ubifs_read_nnode()
1204 lnum = branch->lnum; in ubifs_read_nnode()
1205 offs = branch->offs; in ubifs_read_nnode()
1238 branch->nnode = nnode; in ubifs_read_nnode()
1265 struct ubifs_nbranch *branch; in read_pnode() local
1270 branch = &parent->nbranch[iip]; in read_pnode()
1271 lnum = branch->lnum; in read_pnode()
1272 offs = branch->offs; in read_pnode()
1306 branch->pnode = pnode; in read_pnode()
[all …]
Dlpt_commit.c922 struct ubifs_nbranch *branch; in make_nnode_dirty() local
924 branch = &nnode->parent->nbranch[nnode->iip]; in make_nnode_dirty()
925 if (branch->lnum != lnum || branch->offs != offs) in make_nnode_dirty()
966 struct ubifs_nbranch *branch; in make_pnode_dirty() local
971 branch = &pnode->parent->nbranch[pnode->iip]; in make_pnode_dirty()
972 if (branch->lnum != lnum || branch->offs != offs) in make_pnode_dirty()
1531 struct ubifs_nbranch *branch; in dbg_is_nnode_dirty() local
1535 branch = &nnode->parent->nbranch[nnode->iip]; in dbg_is_nnode_dirty()
1536 if (branch->lnum != lnum || branch->offs != offs) in dbg_is_nnode_dirty()
1565 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.c264 static int ext4_blks_to_allocate(Indirect *branch, int k, unsigned int blks, in ext4_blks_to_allocate() argument
284 le32_to_cpu(*(branch[0].p + count)) == 0) { in ext4_blks_to_allocate()
446 ext4_lblk_t *offsets, Indirect *branch) in ext4_alloc_branch() argument
461 branch[0].key = cpu_to_le32(new_blocks[0]); in ext4_alloc_branch()
477 branch[n].bh = bh; in ext4_alloc_branch()
489 branch[n].p = (__le32 *) bh->b_data + offsets[n]; in ext4_alloc_branch()
490 branch[n].key = cpu_to_le32(new_blocks[n]); in ext4_alloc_branch()
491 *branch[n].p = branch[n].key; in ext4_alloc_branch()
500 *(branch[n].p + i) = cpu_to_le32(++current_block); in ext4_alloc_branch()
/fs/ext2/
Dinode.c353 ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, in ext2_blks_to_allocate() argument
373 && le32_to_cpu(*(branch[0].p + count)) == 0) { in ext2_blks_to_allocate()
469 int *offsets, Indirect *branch) in ext2_alloc_branch() argument
484 branch[0].key = cpu_to_le32(new_blocks[0]); in ext2_alloc_branch()
495 branch[n].bh = bh; in ext2_alloc_branch()
498 branch[n].p = (__le32 *) bh->b_data + offsets[n]; in ext2_alloc_branch()
499 branch[n].key = cpu_to_le32(new_blocks[n]); in ext2_alloc_branch()
500 *branch[n].p = branch[n].key; in ext2_alloc_branch()
509 *(branch[n].p + i) = cpu_to_le32(++current_block); in ext2_alloc_branch()
/fs/ext3/
Dinode.c534 static int ext3_blks_to_allocate(Indirect *branch, int k, unsigned long blks, in ext3_blks_to_allocate() argument
554 le32_to_cpu(*(branch[0].p + count)) == 0) { in ext3_blks_to_allocate()
654 int *offsets, Indirect *branch) in ext3_alloc_branch() argument
669 branch[0].key = cpu_to_le32(new_blocks[0]); in ext3_alloc_branch()
680 branch[n].bh = bh; in ext3_alloc_branch()
691 branch[n].p = (__le32 *) bh->b_data + offsets[n]; in ext3_alloc_branch()
692 branch[n].key = cpu_to_le32(new_blocks[n]); in ext3_alloc_branch()
693 *branch[n].p = branch[n].key; in ext3_alloc_branch()
702 *(branch[n].p + i) = cpu_to_le32(++current_block); in ext3_alloc_branch()
718 BUFFER_TRACE(branch[i].bh, "call journal_forget"); in ext3_alloc_branch()
[all …]