Lines Matching refs:ip
93 ffs_alloc(struct inode *ip, daddr_t lbn __unused, daddr_t bpref, int size,
96 struct fs *fs = ip->i_fs;
110 cg = ino_to_cg(fs, ip->i_number);
113 bno = ffs_hashalloc(ip, cg, bpref, size, ffs_alloccg);
115 if (ip->i_fs->fs_magic == FS_UFS1_MAGIC)
116 ip->i_ffs1_blocks += size / DEV_BSIZE;
118 ip->i_ffs2_blocks += size / DEV_BSIZE;
154 ffs_blkpref_ufs1(struct inode *ip, daddr_t lbn, int indx, int32_t *bap)
160 fs = ip->i_fs;
163 cg = ino_to_cg(fs, ip->i_number);
172 ino_to_cg(fs, ip->i_number) + lbn / fs->fs_maxbpg;
193 ffs_blkpref_ufs2(struct inode *ip, daddr_t lbn, int indx, int64_t *bap)
199 fs = ip->i_fs;
202 cg = ino_to_cg(fs, ip->i_number);
211 ino_to_cg(fs, ip->i_number) + lbn / fs->fs_maxbpg;
245 ffs_hashalloc(struct inode *ip, u_int cg, daddr_t pref, int size,
252 fs = ip->i_fs;
256 result = (*allocator)(ip, cg, pref, size);
266 result = (*allocator)(ip, cg, 0, size);
277 result = (*allocator)(ip, cg, 0, size);
294 ffs_alloccg(struct inode *ip, int cg, daddr_t bpref, int size)
300 struct fs *fs = ip->i_fs;
305 error = bread(ip->i_devvp, fsbtodb(fs, cgtod(fs, cg)), (int)fs->fs_cgsize,
318 bno = ffs_alloccgblk(ip, bp, bpref);
340 bno = ffs_alloccgblk(ip, bp, bpref);
380 ffs_alloccgblk(struct inode *ip, struct buf *bp, daddr_t bpref)
385 struct fs *fs = ip->i_fs;
429 ffs_blkfree(struct inode *ip, daddr_t bno, long size)
435 struct fs *fs = ip->i_fs;
446 (uintmax_t)ip->i_number);
449 error = bread(ip->i_devvp, fsbtodb(fs, cgtod(fs, cg)), (int)fs->fs_cgsize,