Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185880
b: refs/heads/master
c: bda00de
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Theodore Ts'o committed Mar 4, 2010
1 parent 15d9c18 commit a2487bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5661bd6861b7490394e29aaf74dca812188272e4
refs/heads/master: bda00de7e8569b1fcde27b68fa59e74e14c5f93a
8 changes: 2 additions & 6 deletions trunk/fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2697,9 +2697,7 @@ ext4_mb_mark_diskspace_used(struct ext4_allocation_context *ac,
if (err)
goto out_err;

block = ac->ac_b_ex.fe_group * EXT4_BLOCKS_PER_GROUP(sb)
+ ac->ac_b_ex.fe_start
+ le32_to_cpu(es->s_first_data_block);
block = ext4_grp_offs_to_block(sb, &ac->ac_b_ex);

len = ac->ac_b_ex.fe_len;
if (!ext4_data_block_valid(sbi, block, len)) {
Expand Down Expand Up @@ -3154,9 +3152,7 @@ ext4_mb_use_preallocated(struct ext4_allocation_context *ac)
/* The max size of hash table is PREALLOC_TB_SIZE */
order = PREALLOC_TB_SIZE - 1;

goal_block = ac->ac_g_ex.fe_group * EXT4_BLOCKS_PER_GROUP(ac->ac_sb) +
ac->ac_g_ex.fe_start +
le32_to_cpu(EXT4_SB(ac->ac_sb)->s_es->s_first_data_block);
goal_block = ext4_grp_offs_to_block(ac->ac_sb, &ac->ac_g_ex);
/*
* search for the prealloc space that is having
* minimal distance from the goal block.
Expand Down

0 comments on commit a2487bd

Please sign in to comment.