X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fext2%2Fballoc.c;h=f5a6b336f708f8c1fbd72a313548828207a03734;hb=08559aee03be26f1300e0b97f98cf5975095ec7a;hp=7b776af84f62849380f162a10e52d619c8ffb701;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c index 7b776af84..f5a6b336f 100644 --- a/fs/ext2/balloc.c +++ b/fs/ext2/balloc.c @@ -16,8 +16,6 @@ #include #include #include -#include -#include /* * balloc.c contains the blocks allocation and deallocation routines @@ -110,8 +108,6 @@ static int reserve_blocks(struct super_block *sb, int count) free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter); root_blocks = le32_to_cpu(es->s_r_blocks_count); - DLIMIT_ADJUST_BLOCK(sb, vx_current_xid(), &free_blocks, &root_blocks); - if (free_blocks < count) count = free_blocks; @@ -262,7 +258,6 @@ do_more: } error_return: brelse(bitmap_bh); - DLIMIT_FREE_BLOCK(sb, inode->i_xid, freed); release_blocks(sb, freed); DQUOT_FREE_BLOCK(inode, freed); } @@ -366,10 +361,6 @@ int ext2_new_block(struct inode *inode, unsigned long goal, *err = -ENOSPC; goto out_dquot; } - if (DLIMIT_ALLOC_BLOCK(sb, inode->i_xid, es_alloc)) { - *err = -ENOSPC; - goto out_dlimit; - } ext2_debug ("goal=%lu.\n", goal); @@ -517,8 +508,6 @@ got_block: *err = 0; out_release: group_release_blocks(sb, group_no, desc, gdp_bh, group_alloc); - DLIMIT_FREE_BLOCK(sb, inode->i_xid, es_alloc); -out_dlimit: release_blocks(sb, es_alloc); out_dquot: DQUOT_FREE_BLOCK(inode, dq_alloc);