Skip to content

Commit

Permalink
ufs: Use lowercase names of quota functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Kara committed Mar 26, 2009
1 parent 77db4f2 commit 5f5fa79
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions fs/ufs/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void ufs_free_fragments(struct inode *inode, u64 fragment, unsigned count)
"bit already cleared for fragment %u", i);
}

DQUOT_FREE_BLOCK (inode, count);
vfs_dq_free_block(inode, count);


fs32_add(sb, &ucg->cg_cs.cs_nffree, count);
Expand Down Expand Up @@ -195,7 +195,7 @@ void ufs_free_blocks(struct inode *inode, u64 fragment, unsigned count)
ubh_setblock(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno);
if ((UFS_SB(sb)->s_flags & UFS_CG_MASK) == UFS_CG_44BSD)
ufs_clusteracct (sb, ucpi, blkno, 1);
DQUOT_FREE_BLOCK(inode, uspi->s_fpb);
vfs_dq_free_block(inode, uspi->s_fpb);

fs32_add(sb, &ucg->cg_cs.cs_nbfree, 1);
uspi->cs_total.cs_nbfree++;
Expand Down Expand Up @@ -556,7 +556,7 @@ static u64 ufs_add_fragments(struct inode *inode, u64 fragment,
fs32_add(sb, &ucg->cg_frsum[fragsize - count], 1);
for (i = oldcount; i < newcount; i++)
ubh_clrbit (UCPI_UBH(ucpi), ucpi->c_freeoff, fragno + i);
if(DQUOT_ALLOC_BLOCK(inode, count)) {
if (vfs_dq_alloc_block(inode, count)) {
*err = -EDQUOT;
return 0;
}
Expand Down Expand Up @@ -664,7 +664,7 @@ static u64 ufs_alloc_fragments(struct inode *inode, unsigned cgno,
for (i = count; i < uspi->s_fpb; i++)
ubh_setbit (UCPI_UBH(ucpi), ucpi->c_freeoff, goal + i);
i = uspi->s_fpb - count;
DQUOT_FREE_BLOCK(inode, i);
vfs_dq_free_block(inode, i);

fs32_add(sb, &ucg->cg_cs.cs_nffree, i);
uspi->cs_total.cs_nffree += i;
Expand All @@ -676,7 +676,7 @@ static u64 ufs_alloc_fragments(struct inode *inode, unsigned cgno,
result = ufs_bitmap_search (sb, ucpi, goal, allocsize);
if (result == INVBLOCK)
return 0;
if(DQUOT_ALLOC_BLOCK(inode, count)) {
if (vfs_dq_alloc_block(inode, count)) {
*err = -EDQUOT;
return 0;
}
Expand Down Expand Up @@ -747,7 +747,7 @@ static u64 ufs_alloccg_block(struct inode *inode,
ubh_clrblock (UCPI_UBH(ucpi), ucpi->c_freeoff, blkno);
if ((UFS_SB(sb)->s_flags & UFS_CG_MASK) == UFS_CG_44BSD)
ufs_clusteracct (sb, ucpi, blkno, -1);
if(DQUOT_ALLOC_BLOCK(inode, uspi->s_fpb)) {
if (vfs_dq_alloc_block(inode, uspi->s_fpb)) {
*err = -EDQUOT;
return INVBLOCK;
}
Expand Down
8 changes: 4 additions & 4 deletions fs/ufs/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ void ufs_free_inode (struct inode * inode)

is_directory = S_ISDIR(inode->i_mode);

DQUOT_FREE_INODE(inode);
DQUOT_DROP(inode);
vfs_dq_free_inode(inode);
vfs_dq_drop(inode);

clear_inode (inode);

Expand Down Expand Up @@ -355,8 +355,8 @@ struct inode * ufs_new_inode(struct inode * dir, int mode)

unlock_super (sb);

if (DQUOT_ALLOC_INODE(inode)) {
DQUOT_DROP(inode);
if (vfs_dq_alloc_inode(inode)) {
vfs_dq_drop(inode);
err = -EDQUOT;
goto fail_without_unlock;
}
Expand Down

0 comments on commit 5f5fa79

Please sign in to comment.