Btrfs: add a type field for the transaction handle
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 20 Sep 2012 07:51:59 +0000 (01:51 -0600)
committerChris Mason <chris.mason@fusionio.com>
Tue, 9 Oct 2012 13:15:38 +0000 (09:15 -0400)
commita698d0755adb6f27289d1e6610b2240595d27e8c
treebf54f9bcd6941a459be5aeaf22299547c693c0aa
parente8830e606ffee383f073e32313f11fc5692813fe
Btrfs: add a type field for the transaction handle

This patch add a type field into the transaction handle structure,
in this way, we needn't implement various end-transaction functions
and can make the code more simple and readable.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
fs/btrfs/inode.c
fs/btrfs/transaction.c
fs/btrfs/transaction.h