summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorMiao Xie2014-04-02 13:51:06 +0200
committerChris Mason2014-06-10 02:20:45 +0200
commit995946dd2961776bb45e653810ae96643fbf4ce8 (patch)
tree98b3e1b9fd72ccdca5a6fe540cf421a58692deba /fs/btrfs/extent-tree.c
parentBtrfs: check if items are ordered when a leaf is marked dirty (diff)
downloadkernel-qcow2-linux-995946dd2961776bb45e653810ae96643fbf4ce8.tar.gz
kernel-qcow2-linux-995946dd2961776bb45e653810ae96643fbf4ce8.tar.xz
kernel-qcow2-linux-995946dd2961776bb45e653810ae96643fbf4ce8.zip
Btrfs: use helpers for last_trans_log_full_commit instead of opencode
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 7c18566fd2b4..203d9a5a4030 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -26,10 +26,9 @@
#include <linux/ratelimit.h>
#include <linux/percpu_counter.h>
#include "hash.h"
-#include "ctree.h"
+#include "tree-log.h"
#include "disk-io.h"
#include "print-tree.h"
-#include "transaction.h"
#include "volumes.h"
#include "raid56.h"
#include "locking.h"
@@ -8714,7 +8713,7 @@ int btrfs_make_block_group(struct btrfs_trans_handle *trans,
extent_root = root->fs_info->extent_root;
- root->fs_info->last_trans_log_full_commit = trans->transid;
+ btrfs_set_log_full_commit(root->fs_info, trans);
cache = btrfs_create_block_group_cache(root, chunk_offset, size);
if (!cache)