Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115581
b: refs/heads/master
c: 8a0aba7
h: refs/heads/master
i:
  115579: 4f99568
v: v3
  • Loading branch information
Theodore Ts'o committed Oct 16, 2008
1 parent 1995eae commit 8d6c376
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a1aebc1e2da9a7bee4ff8cce510b08f469d1929e
refs/heads/master: 8a0aba733db1adb5e1f0e828889a18f4c1c512de
7 changes: 7 additions & 0 deletions trunk/fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2653,6 +2653,7 @@ ext4_mb_free_committed_blocks(struct super_block *sb)
struct ext4_sb_info *sbi = EXT4_SB(sb);
int err, count = 0, count2 = 0;
struct ext4_free_data *entry;
ext4_fsblk_t discard_block;

if (list_empty(&sbi->s_committed_transaction))
return;
Expand Down Expand Up @@ -2696,6 +2697,12 @@ ext4_mb_free_committed_blocks(struct super_block *sb)
page_cache_release(e4b.bd_bitmap_page);
}
ext4_unlock_group(sb, entry->group);
discard_block = (ext4_fsblk_t) entry->group * EXT4_BLOCKS_PER_GROUP(sb)
+ entry->start_blk
+ le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block);
trace_mark(ext4_discard_blocks, "dev %s blk %llu count %u", sb->s_id,
(unsigned long long) discard_block, entry->count);
sb_issue_discard(sb, discard_block, entry->count);

kmem_cache_free(ext4_free_ext_cachep, entry);
ext4_mb_release_desc(&e4b);
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/ext4/mballoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <linux/pagemap.h>
#include <linux/seq_file.h>
#include <linux/version.h>
#include <linux/blkdev.h>
#include <linux/marker.h>
#include "ext4_jbd2.h"
#include "ext4.h"
#include "group.h"
Expand Down

0 comments on commit 8d6c376

Please sign in to comment.