diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-12-26 13:07:04 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-28 13:20:08 -0800 |
commit | a56dbd89400dd2cb9c91d734435dbfe059495da1 (patch) | |
tree | 3ad6ef97637a4c09865d4a9f31c22472ac14f746 /fs/btrfs/transaction.c | |
parent | 0353808cae35bc81c86e3510748a10f6bdff41b8 (diff) | |
download | lwn-a56dbd89400dd2cb9c91d734435dbfe059495da1.tar.gz lwn-a56dbd89400dd2cb9c91d734435dbfe059495da1.zip |
Btrfs: remove btrfs_end_transaction_dmeta()
Two reasons:
- btrfs_end_transaction_dmeta() is the same as btrfs_end_transaction_throttle()
so it is unnecessary.
- All the delayed items should be dealt in the current transaction, so the
workers should not commit the transaction, instead, deal with the delayed
items as many as possible.
So we can remove btrfs_end_transaction_dmeta()
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 46bfd820d91f..e5fe801659ba 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -790,12 +790,6 @@ int btrfs_end_transaction_throttle(struct btrfs_trans_handle *trans, return __btrfs_end_transaction(trans, root, 1); } -int btrfs_end_transaction_dmeta(struct btrfs_trans_handle *trans, - struct btrfs_root *root) -{ - return __btrfs_end_transaction(trans, root, 1); -} - /* * when btree blocks are allocated, they have some corresponding bits set for * them in one of two extent_io trees. This is used to make sure all of |