diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-10-16 20:00:24 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-10-16 20:00:24 -0400 |
commit | 3e624fc72fba09b6f999a9fbb87b64efccd38036 (patch) | |
tree | f0a1feac377788b27ea704519a33f367a6d415f9 /fs/ext4/ext4_sb.h | |
parent | 22359f5745eb26bd3205a1ede7968c8944398220 (diff) | |
download | linux-3e624fc72fba09b6f999a9fbb87b64efccd38036.tar.gz linux-3e624fc72fba09b6f999a9fbb87b64efccd38036.tar.bz2 linux-3e624fc72fba09b6f999a9fbb87b64efccd38036.zip |
ext4: Replace hackish ext4_mb_poll_new_transaction with commit callback
The multiblock allocator needs to be able to release blocks (and issue
a blkdev discard request) when the transaction which freed those
blocks is committed. Previously this was done via a polling mechanism
when blocks are allocated or freed. A much better way of doing things
is to create a jbd2 callback function and attaching the list of blocks
to be freed directly to the transaction structure.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4_sb.h')
-rw-r--r-- | fs/ext4/ext4_sb.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ext4/ext4_sb.h b/fs/ext4/ext4_sb.h index 6a0b40d43264..445fde603df8 100644 --- a/fs/ext4/ext4_sb.h +++ b/fs/ext4/ext4_sb.h @@ -99,9 +99,6 @@ struct ext4_sb_info { struct inode *s_buddy_cache; long s_blocks_reserved; spinlock_t s_reserve_lock; - struct list_head s_active_transaction; - struct list_head s_closed_transaction; - struct list_head s_committed_transaction; spinlock_t s_md_lock; tid_t s_last_transaction; unsigned short *s_mb_offsets, *s_mb_maxs; |