diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-02 09:47:58 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-02 09:47:58 -0500 |
commit | f0930a37f1c096c3a8f6a17b1e251c7fdf4d4457 (patch) | |
tree | 51b569606b25cd5ef903f9ef97734a1f6ec291d2 /fs/btrfs/disk-io.c | |
parent | ed2ff2cba766dfe7976a0113f667c9a0a50dff02 (diff) |
Btrfs: Fix extent code to use merge during delete
Remove implicit commit in del_item and insert_item
Add implicit commit to close()
Add commit op in random-test
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 656ace6147a8..f7ca5362291e 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -239,6 +239,7 @@ static int drop_cache(struct ctree_root *root) | |||
239 | } | 239 | } |
240 | int close_ctree(struct ctree_root *root) | 240 | int close_ctree(struct ctree_root *root) |
241 | { | 241 | { |
242 | commit_transaction(root); | ||
242 | drop_cache(root->extent_root); | 243 | drop_cache(root->extent_root); |
243 | drop_cache(root); | 244 | drop_cache(root); |
244 | BUG_ON(!list_empty(&root->trans)); | 245 | BUG_ON(!list_empty(&root->trans)); |