Home | History | Annotate | Download | only in ffs

Lines Matching defs:lbn

87 	daddr_t lbn, lastlbn;
100 lbn = ffs_lblkno(fs, offset);
107 if (lbn < 0)
117 if (lastlbn < UFS_NDADDR && lastlbn < lbn) {
130 if (lbn < UFS_NDADDR) {
131 nb = ufs_rw32(ip->i_ffs1_db[lbn], needswap);
132 if (nb != 0 && ip->i_ffs1_size >= ffs_lblktosize(fs, lbn + 1)) {
142 error = bread(ip->i_devvp, lbn, fs->fs_bsize,
167 error = bread(ip->i_devvp, lbn, osize,
185 if (ip->i_ffs1_size < ffs_lblktosize(fs, lbn + 1))
189 error = ffs_alloc(ip, lbn,
190 ffs_blkpref_ufs1(ip, lbn, (int)lbn,
196 bp = getblk(ip->i_devvp, lbn, nsize, 0, 0);
202 ip->i_ffs1_db[lbn] = ufs_rw32((int32_t)newb, needswap);
211 if ((error = ufs_getlbns(ip, lbn, indirs, &num)) != 0)
228 pref = ffs_blkpref_ufs1(ip, lbn, 0, (int32_t *)0);
229 error = ffs_alloc(ip, lbn, pref, (int)fs->fs_bsize, &newb);
267 pref = ffs_blkpref_ufs1(ip, lbn, 0, (int32_t *)0);
268 error = ffs_alloc(ip, lbn, pref, (int)fs->fs_bsize, &newb);
297 pref = ffs_blkpref_ufs1(ip, lbn, indirs[num].in_off, &bap[0]);
298 error = ffs_alloc(ip, lbn, pref, (int)fs->fs_bsize, &newb);
306 nbp = getblk(ip->i_devvp, lbn, fs->fs_bsize, 0, 0);
322 error = bread(ip->i_devvp, lbn, (int)fs->fs_bsize, 0, &nbp);
334 daddr_t lbn, lastlbn;
346 lbn = ffs_lblkno(fs, offset);
353 if (lbn < 0)
363 if (lastlbn < UFS_NDADDR && lastlbn < lbn) {
376 if (lbn < UFS_NDADDR) {
377 nb = ufs_rw64(ip->i_ffs2_db[lbn], needswap);
378 if (nb != 0 && ip->i_ffs2_size >= ffs_lblktosize(fs, lbn + 1)) {
388 error = bread(ip->i_devvp, lbn, fs->fs_bsize,
413 error = bread(ip->i_devvp, lbn, osize,
431 if (ip->i_ffs2_size < ffs_lblktosize(fs, lbn + 1))
435 error = ffs_alloc(ip, lbn,
436 ffs_blkpref_ufs2(ip, lbn, (int)lbn,
442 bp = getblk(ip->i_devvp, lbn, nsize, 0, 0);
448 ip->i_ffs2_db[lbn] = ufs_rw64(newb, needswap);
457 if ((error = ufs_getlbns(ip, lbn, indirs, &num)) != 0)
474 pref = ffs_blkpref_ufs2(ip, lbn, 0, (int64_t *)0);
475 error = ffs_alloc(ip, lbn, pref, (int)fs->fs_bsize, &newb);
513 pref = ffs_blkpref_ufs2(ip, lbn, 0, (int64_t *)0);
514 error = ffs_alloc(ip, lbn, pref, (int)fs->fs_bsize, &newb);
543 pref = ffs_blkpref_ufs2(ip, lbn, indirs[num].in_off, &bap[0]);
544 error = ffs_alloc(ip, lbn, pref, (int)fs->fs_bsize, &newb);
552 nbp = getblk(ip->i_devvp, lbn, fs->fs_bsize, 0, 0);
568 error = bread(ip->i_devvp, lbn, (int)fs->fs_bsize, 0,