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/inode.c | |
parent | 1f21ef0a34c37de0daf66fce7141b23b88630f29 (diff) | |
download | linux-995946dd2961776bb45e653810ae96643fbf4ce8.tar.bz2 |
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/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index ef3bd3deca12..95ac6b4f2390 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8329,7 +8329,7 @@ static int btrfs_rename(struct inode *old_dir, struct dentry *old_dentry, BTRFS_I(old_inode)->dir_index = 0ULL; if (unlikely(old_ino == BTRFS_FIRST_FREE_OBJECTID)) { /* force full log commit if subvolume involved. */ - root->fs_info->last_trans_log_full_commit = trans->transid; + btrfs_set_log_full_commit(root->fs_info, trans); } else { ret = btrfs_insert_inode_ref(trans, dest, new_dentry->d_name.name, |