Searched refs:branch (Results 1 – 6 of 6) sorted by relevance
/fs/sysv/ |
D | itree.c | 127 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/ |
D | lpt.c | 1195 struct ubifs_nbranch *branch = NULL; in ubifs_read_nnode() local 1201 branch = &parent->nbranch[iip]; in ubifs_read_nnode() 1202 lnum = branch->lnum; in ubifs_read_nnode() 1203 offs = branch->offs; in ubifs_read_nnode() 1236 branch->nnode = nnode; in ubifs_read_nnode() 1263 struct ubifs_nbranch *branch; in read_pnode() local 1268 branch = &parent->nbranch[iip]; in read_pnode() 1269 lnum = branch->lnum; in read_pnode() 1270 offs = branch->offs; in read_pnode() 1304 branch->pnode = pnode; in read_pnode() [all …]
|
D | lpt_commit.c | 911 struct ubifs_nbranch *branch; in make_nnode_dirty() local 913 branch = &nnode->parent->nbranch[nnode->iip]; in make_nnode_dirty() 914 if (branch->lnum != lnum || branch->offs != offs) in make_nnode_dirty() 955 struct ubifs_nbranch *branch; in make_pnode_dirty() local 960 branch = &pnode->parent->nbranch[pnode->iip]; in make_pnode_dirty() 961 if (branch->lnum != lnum || branch->offs != offs) in make_pnode_dirty() 1522 struct ubifs_nbranch *branch; in dbg_is_nnode_dirty() local 1526 branch = &nnode->parent->nbranch[nnode->iip]; in dbg_is_nnode_dirty() 1527 if (branch->lnum != lnum || branch->offs != offs) in dbg_is_nnode_dirty() 1556 struct ubifs_nbranch *branch; in dbg_is_pnode_dirty() local [all …]
|
/fs/minix/ |
D | itree_common.c | 72 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/ |
D | indirect.c | 269 static int ext4_blks_to_allocate(Indirect *branch, int k, unsigned int blks, in ext4_blks_to_allocate() argument 289 le32_to_cpu(*(branch[0].p + count)) == 0) { in ext4_blks_to_allocate() 325 Indirect *branch) in ext4_alloc_branch() argument 344 branch[i].key = cpu_to_le32(new_blocks[i]); in ext4_alloc_branch() 348 bh = branch[i].bh = sb_getblk(ar->inode->i_sb, new_blocks[i-1]); in ext4_alloc_branch() 362 p = branch[i].p = (__le32 *) bh->b_data + offsets[i]; in ext4_alloc_branch() 388 if (i > 0 && i != indirect_blks && branch[i].bh) in ext4_alloc_branch() 389 ext4_forget(handle, 1, ar->inode, branch[i].bh, in ext4_alloc_branch() 390 branch[i].bh->b_blocknr); in ext4_alloc_branch()
|
/fs/ext2/ |
D | inode.c | 361 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()
|