Lines Matching refs:blk

70 ext4_ext_blk_check(struct inode *ip, e4fs_daddr_t blk)
76 if (blk < fs->e2fs->e2fs_first_dblock || blk >= fs->e2fs_bcount)
88 e4fs_daddr_t blk;
94 printf(" index %p => (blk %u pblk %ju)\n", ex,
102 blk = ext4_ext_index_pblock(ex);
103 error = ext4_ext_blk_check(ip, blk);
108 fsbtodb(fs, blk), (int)fs->e2fs_bsize, NOCRED, &bp)) != 0) {
124 e4fs_daddr_t blk;
127 blk = ext4_ext_extent_pblock(ep);
128 error = ext4_ext_blk_check(ip, blk);
133 printf(" ext %p => (blk %u len %u start %ju)\n",
135 (uint64_t)blk);
232 e4fs_daddr_t blk;
234 blk = le32toh(index->ei_leaf_lo);
235 blk |= (e4fs_daddr_t)le16toh(index->ei_leaf_hi) << 32;
237 return (blk);
251 e4fs_daddr_t blk;
253 blk = le32toh(extent->e_start_lo);
254 blk |= (e4fs_daddr_t)le16toh(extent->e_start_hi) << 32;
256 return (blk);
384 e4fs_daddr_t blk = ext4_ext_extent_pblock(ext);
391 return (ext4_inode_block_validate(ip, blk, len));
397 e4fs_daddr_t blk = ext4_ext_index_pblock(ext_idx);
399 return (ext4_inode_block_validate(ip, blk, 1));
495 ext4_ext_binsearch_index(struct ext4_extent_path *path, int blk)
510 if (blk < le32toh(m->ei_blk))
520 ext4_ext_binsearch_ext(struct ext4_extent_path *path, int blk)
538 if (blk < le32toh(m->e_blk))
549 struct buf *bp, uint64_t blk)
557 path->ep_blk = blk;
606 uint64_t blk;
637 blk = ext4_ext_index_pblock(path[ppos].ep_index);
641 error = bread(ip->i_devvp, fsbtodb(ip->i_e2fs, blk),
656 ext4_ext_fill_path_bdata(&path[ppos], bp, blk);
724 ext4_ext_put_in_cache(struct inode *ip, uint32_t blk,
731 ip->i_ext_cache.ec_blk = blk;
752 e2fs_daddr_t blk = le32toh(ex->e_blk);
754 if (block > blk)
755 return (pblk + (block - blk));
757 return (pblk - (blk - block));
818 uint64_t blk;
827 blk = path->ep_blk;
828 bp = getblk(ip->i_devvp, fsbtodb(fs, blk),
845 uint32_t lblk, e4fs_daddr_t blk)
852 "lblk == index blk => extent corrupted");
882 ext4_index_store_pblock(idx, blk);
892 e4fs_daddr_t blk = ext2_alloc_meta(ip);
893 if (blk) {
899 return (blk);
903 ext4_ext_blkfree(struct inode *ip, uint64_t blk, int count, int flags)
912 ext2_blkfree(ip, blk + i, fs->e2fs_bsize);