Lines Matching refs:fragment
39 void ufs_free_fragments(struct inode *inode, u64 fragment, unsigned count) in ufs_free_fragments() argument
52 (unsigned long long)fragment, count); in ufs_free_fragments()
54 if (ufs_fragnum(fragment) + count > uspi->s_fpg) in ufs_free_fragments()
59 cgno = ufs_dtog(uspi, fragment); in ufs_free_fragments()
60 bit = ufs_dtogd(uspi, fragment); in ufs_free_fragments()
135 void ufs_free_blocks(struct inode *inode, u64 fragment, unsigned count) in ufs_free_blocks() argument
148 (unsigned long long)fragment, count); in ufs_free_blocks()
150 if ((fragment & uspi->s_fpbmask) || (count & uspi->s_fpbmask)) { in ufs_free_blocks()
153 (unsigned long long)fragment, count); in ufs_free_blocks()
161 cgno = ufs_dtog(uspi, fragment); in ufs_free_blocks()
162 bit = ufs_dtogd(uspi, fragment); in ufs_free_blocks()
212 fragment += count; in ufs_free_blocks()
340 u64 ufs_new_fragments(struct inode *inode, void *p, u64 fragment, in ufs_new_fragments() argument
351 inode->i_ino, (unsigned long long)fragment, in ufs_new_fragments()
362 if (count + ufs_fragnum(fragment) > uspi->s_fpb) { in ufs_new_fragments()
365 (unsigned long long)fragment, count); in ufs_new_fragments()
366 count = uspi->s_fpb - ufs_fragnum(fragment); in ufs_new_fragments()
368 oldcount = ufs_fragnum (fragment); in ufs_new_fragments()
378 (unsigned long long)fragment, in ufs_new_fragments()
383 if (fragment < UFS_I(inode)->i_lastfrag) { in ufs_new_fragments()
427 max(UFS_I(inode)->i_lastfrag, fragment + count); in ufs_new_fragments()
443 fragment + count); in ufs_new_fragments()
469 ufs_change_blocknr(inode, fragment - oldcount, oldcount, in ufs_new_fragments()
476 fragment + count); in ufs_new_fragments()
504 static u64 ufs_add_fragments(struct inode *inode, u64 fragment, in ufs_add_fragments() argument
514 (unsigned long long)fragment, oldcount, newcount); in ufs_add_fragments()
520 cgno = ufs_dtog(uspi, fragment); in ufs_add_fragments()
523 if ((ufs_fragnum (fragment) + newcount) > uspi->s_fpb) in ufs_add_fragments()
535 fragno = ufs_dtogd(uspi, fragment); in ufs_add_fragments()
570 UFSD("EXIT, fragment %llu\n", (unsigned long long)fragment); in ufs_add_fragments()
572 return fragment; in ufs_add_fragments()