Skip to content

Commit 5f5fa79

Browse files
committed
ufs: Use lowercase names of quota functions
Use lowercase names of quota functions instead of old uppercase ones. Signed-off-by: Jan Kara <jack@suse.cz> CC: Evgeniy Dushistov <dushistov@mail.ru>
1 parent 77db4f2 commit 5f5fa79

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎fs/ufs/balloc.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

‎fs/ufs/ialloc.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ void ufs_free_inode (struct inode * inode)
9595

9696
is_directory = S_ISDIR(inode->i_mode);
9797

98-
DQUOT_FREE_INODE(inode);
99-
DQUOT_DROP(inode);
98+
vfs_dq_free_inode(inode);
99+
vfs_dq_drop(inode);
100100

101101
clear_inode (inode);
102102

@@ -355,8 +355,8 @@ struct inode * ufs_new_inode(struct inode * dir, int mode)
355355

356356
unlock_super (sb);
357357

358-
if (DQUOT_ALLOC_INODE(inode)) {
359-
DQUOT_DROP(inode);
358+
if (vfs_dq_alloc_inode(inode)) {
359+
vfs_dq_drop(inode);
360360
err = -EDQUOT;
361361
goto fail_without_unlock;
362362
}

0 commit comments

Comments
 (0)