@@ -85,7 +85,7 @@ void ufs_free_fragments(struct inode *inode, u64 fragment, unsigned count)
8585 "bit already cleared for fragment %u" , i );
8686 }
8787
88- DQUOT_FREE_BLOCK (inode , count );
88+ vfs_dq_free_block (inode , count );
8989
9090
9191 fs32_add (sb , & ucg -> cg_cs .cs_nffree , count );
@@ -195,7 +195,7 @@ void ufs_free_blocks(struct inode *inode, u64 fragment, unsigned count)
195195 ubh_setblock (UCPI_UBH (ucpi ), ucpi -> c_freeoff , blkno );
196196 if ((UFS_SB (sb )-> s_flags & UFS_CG_MASK ) == UFS_CG_44BSD )
197197 ufs_clusteracct (sb , ucpi , blkno , 1 );
198- DQUOT_FREE_BLOCK (inode , uspi -> s_fpb );
198+ vfs_dq_free_block (inode , uspi -> s_fpb );
199199
200200 fs32_add (sb , & ucg -> cg_cs .cs_nbfree , 1 );
201201 uspi -> cs_total .cs_nbfree ++ ;
@@ -556,7 +556,7 @@ static u64 ufs_add_fragments(struct inode *inode, u64 fragment,
556556 fs32_add (sb , & ucg -> cg_frsum [fragsize - count ], 1 );
557557 for (i = oldcount ; i < newcount ; i ++ )
558558 ubh_clrbit (UCPI_UBH (ucpi ), ucpi -> c_freeoff , fragno + i );
559- if ( DQUOT_ALLOC_BLOCK (inode , count )) {
559+ if ( vfs_dq_alloc_block (inode , count )) {
560560 * err = - EDQUOT ;
561561 return 0 ;
562562 }
@@ -664,7 +664,7 @@ static u64 ufs_alloc_fragments(struct inode *inode, unsigned cgno,
664664 for (i = count ; i < uspi -> s_fpb ; i ++ )
665665 ubh_setbit (UCPI_UBH (ucpi ), ucpi -> c_freeoff , goal + i );
666666 i = uspi -> s_fpb - count ;
667- DQUOT_FREE_BLOCK (inode , i );
667+ vfs_dq_free_block (inode , i );
668668
669669 fs32_add (sb , & ucg -> cg_cs .cs_nffree , i );
670670 uspi -> cs_total .cs_nffree += i ;
@@ -676,7 +676,7 @@ static u64 ufs_alloc_fragments(struct inode *inode, unsigned cgno,
676676 result = ufs_bitmap_search (sb , ucpi , goal , allocsize );
677677 if (result == INVBLOCK )
678678 return 0 ;
679- if ( DQUOT_ALLOC_BLOCK (inode , count )) {
679+ if ( vfs_dq_alloc_block (inode , count )) {
680680 * err = - EDQUOT ;
681681 return 0 ;
682682 }
@@ -747,7 +747,7 @@ static u64 ufs_alloccg_block(struct inode *inode,
747747 ubh_clrblock (UCPI_UBH (ucpi ), ucpi -> c_freeoff , blkno );
748748 if ((UFS_SB (sb )-> s_flags & UFS_CG_MASK ) == UFS_CG_44BSD )
749749 ufs_clusteracct (sb , ucpi , blkno , -1 );
750- if ( DQUOT_ALLOC_BLOCK (inode , uspi -> s_fpb )) {
750+ if ( vfs_dq_alloc_block (inode , uspi -> s_fpb )) {
751751 * err = - EDQUOT ;
752752 return INVBLOCK ;
753753 }
0 commit comments