diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2014-04-02 19:51:06 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-06-09 17:20:45 -0700 |
commit | 995946dd2961776bb45e653810ae96643fbf4ce8 (patch) | |
tree | 98b3e1b9fd72ccdca5a6fe540cf421a58692deba /fs/btrfs/extent-tree.c | |
parent | 1f21ef0a34c37de0daf66fce7141b23b88630f29 (diff) | |
download | blackbird-op-linux-995946dd2961776bb45e653810ae96643fbf4ce8.tar.gz blackbird-op-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.c | 5 |
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) |