Searched refs:lastiblock (Results 1 – 3 of 3) sorted by relevance
| /netbsd-src/sys/ufs/ext2fs/ |
| H A D | ext2fs_inode.c | 292 daddr_t bn, lastiblock[EXT2FS_NIADDR], indir_lbn[EXT2FS_NIADDR]; in ext2fs_truncate() local 374 lastiblock[SINGLE] = lastblock - EXT2FS_NDADDR; in ext2fs_truncate() 375 lastiblock[DOUBLE] = lastiblock[SINGLE] - EXT2_NINDIR(fs); in ext2fs_truncate() 376 lastiblock[TRIPLE] = lastiblock[DOUBLE] - EXT2_NINDIR(fs) * EXT2_NINDIR(fs); in ext2fs_truncate() 387 if (lastiblock[level] < 0 && oldblks[EXT2FS_NDADDR + level] != 0) { in ext2fs_truncate() 390 lastiblock[level] = -1; in ext2fs_truncate() 431 EXT2_FSBTODB(fs, bn), lastiblock[level], level, &count); in ext2fs_truncate() 435 if (lastiblock[level] < 0) { in ext2fs_truncate() 441 if (lastiblock[level] >= 0) in ext2fs_truncate()
|
| /netbsd-src/sys/ufs/ffs/ |
| H A D | ffs_inode.c | 212 daddr_t bn, lastiblock[UFS_NIADDR], indir_lbn[UFS_NIADDR]; in ffs_truncate() local 410 lastiblock[SINGLE] = lastblock - UFS_NDADDR; in ffs_truncate() 411 lastiblock[DOUBLE] = lastiblock[SINGLE] - FFS_NINDIR(fs); in ffs_truncate() 412 lastiblock[TRIPLE] = lastiblock[DOUBLE] - FFS_NINDIR(fs) * FFS_NINDIR(fs); in ffs_truncate() 423 if (lastiblock[level] < 0 && blks[UFS_NDADDR + level] != 0) { in ffs_truncate() 426 lastiblock[level] = -1; in ffs_truncate() 475 if (lastiblock[level] < 0 && in ffs_truncate() 488 FFS_FSBTODB(fs, bn), lastiblock[level], level, in ffs_truncate() 498 if (lastiblock[level] < 0) { in ffs_truncate() 506 if (lastiblock[level] >= 0) in ffs_truncate()
|
| /netbsd-src/sys/ufs/lfs/ |
| H A D | lfs_inode.c | 217 daddr_t bn, lbn, lastiblock[ULFS_NIADDR], indir_lbn[ULFS_NIADDR]; in lfs_truncate() local 444 lastiblock[SINGLE] = lastblock - ULFS_NDADDR; in lfs_truncate() 445 lastiblock[DOUBLE] = lastiblock[SINGLE] - LFS_NINDIR(fs); in lfs_truncate() 446 lastiblock[TRIPLE] = lastiblock[DOUBLE] - LFS_NINDIR(fs) * LFS_NINDIR(fs); in lfs_truncate() 460 if (lastiblock[level] < 0) { in lfs_truncate() 462 lastiblock[level] = -1; in lfs_truncate() 483 bn, lastiblock[level], in lfs_truncate() 490 if (lastiblock[level] < 0) { in lfs_truncate() 500 if (lastiblock[level] >= 0) in lfs_truncate()
|