Home | History | Annotate | Download | only in ufs

Lines Matching refs:block

46      * Block spans 8 fragments, then address is interleaved by 8.
83 * The actual indirect block map handling - the block passed in should
84 * be relative to the beginning of the particular block hierarchy.
86 * @shft_per_blk: shift to get nr. of addresses in a block.
87 * @mask_per_blk: mask to limit the max nr. of addresses in a block.
88 * @addr_count: nr. of addresses in a block.
91 bmap_indirect(struct fs_info *fs, uint64_t start, uint32_t block,
108 index = (block >> (levels * shft_per_blk)) & mask_per_blk;
117 * Handle the traditional block map, like indirect, double indirect
120 uint64_t ufs_bmap (struct inode *inode, block_t block, size_t *nblocks)
141 if (block < UFS_DIRECT_BLOCKS)
143 block, UFS2_ADDR_SHIFT,
144 UFS_DIRECT_BLOCKS - block, nblocks);
147 block -= UFS_DIRECT_BLOCKS;
148 if (block < indir_blks)
150 block, 1, nblocks);
153 block -= indir_blks;
154 if (block < double_blks)
156 block, 2, nblocks);
159 block -= double_blks;
160 if (block < triple_blks)
162 block, 3, nblocks);
178 block_t block;
182 block = ufs_bmap(inode, lstart >> blktosec, &nblocks);
183 ufs_debug("blk: %u\n", block);
185 if (!block) // Sparse block
193 ((sector_t) (block << (frag_shift - SECTOR_SHIFT(fs)))) |