]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ext4: Replace hackish ext4_mb_poll_new_transaction with commit callback
authorTheodore Ts'o <tytso@mit.edu>
Fri, 17 Oct 2008 00:00:24 +0000 (20:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 17 Oct 2008 00:00:24 +0000 (20:00 -0400)
commit3e624fc72fba09b6f999a9fbb87b64efccd38036
treef0a1feac377788b27ea704519a33f367a6d415f9
parent22359f5745eb26bd3205a1ede7968c8944398220
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>
fs/ext4/ext4_sb.h
fs/ext4/mballoc.c
fs/ext4/mballoc.h
fs/jbd2/commit.c
fs/jbd2/transaction.c
include/linux/jbd2.h