Lines Matching defs:lbn
59 ext2_ext_balloc(struct inode *ip, uint32_t lbn, int size,
71 error = ext4_ext_get_blocks(ip, lbn, blks, cred, NULL, &allocated, &newblk);
76 bp = getblk(vp, lbn, fs->e2fs_bsize, 0, 0, 0);
80 error = bread(vp, lbn, fs->e2fs_bsize, NOCRED, &bp);
101 ext2_balloc(struct inode *ip, e2fs_lbn_t lbn, int size, struct ucred *cred,
114 if (lbn < 0)
124 if (lbn == ip->i_next_alloc_block + 1) {
130 return (ext2_ext_balloc(ip, lbn, size, cred, bpp, flags));
135 if (lbn < EXT2_NDADDR) {
136 nb = ip->i_db[lbn];
142 error = bread(vp, lbn, fs->e2fs_bsize, NOCRED, &bp);
147 if (ip->i_size >= (lbn + 1) * fs->e2fs_bsize) {
153 error = ext2_alloc(ip, lbn,
154 ext2_blkpref(ip, lbn, (int)lbn, &ip->i_db[0], 0),
164 bp = getblk(vp, lbn, fs->e2fs_bsize, 0, 0, 0);
169 ip->i_db[lbn] = dbtofsb(fs, bp->b_blkno);
178 if ((error = ext2_getlbns(vp, lbn, indirs, &num)) != 0)
191 pref = ext2_blkpref(ip, lbn, indirs[0].in_off +
193 if ((error = ext2_alloc(ip, lbn, pref, fs->e2fs_bsize, cred,
233 pref = ext2_blkpref(ip, lbn, indirs[i].in_off, bap,
235 error = ext2_alloc(ip, lbn, pref, (int)fs->e2fs_bsize, cred, &newb);
273 pref = ext2_blkpref(ip, lbn, indirs[i].in_off, &bap[0],
276 lbn, pref, (int)fs->e2fs_bsize, cred, &newb)) != 0) {
283 nbp = getblk(vp, lbn, fs->e2fs_bsize, 0, 0, 0);
307 error = cluster_read(vp, ip->i_size, lbn,
311 error = bread(vp, lbn, (int)fs->e2fs_bsize, NOCRED, &nbp);
318 nbp = getblk(vp, lbn, fs->e2fs_bsize, 0, 0, 0);