diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2014-04-02 07:51:06 -0400 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-06-09 20:20:45 -0400 |
commit | 995946dd2961776bb45e653810ae96643fbf4ce8 (patch) | |
tree | 98b3e1b9fd72ccdca5a6fe540cf421a58692deba /fs/btrfs/inode.c | |
parent | 1f21ef0a34c37de0daf66fce7141b23b88630f29 (diff) |
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, | |||
8329 | BTRFS_I(old_inode)->dir_index = 0ULL; | 8329 | BTRFS_I(old_inode)->dir_index = 0ULL; |
8330 | if (unlikely(old_ino == BTRFS_FIRST_FREE_OBJECTID)) { | 8330 | if (unlikely(old_ino == BTRFS_FIRST_FREE_OBJECTID)) { |
8331 | /* force full log commit if subvolume involved. */ | 8331 | /* force full log commit if subvolume involved. */ |
8332 | root->fs_info->last_trans_log_full_commit = trans->transid; | 8332 | btrfs_set_log_full_commit(root->fs_info, trans); |
8333 | } else { | 8333 | } else { |
8334 | ret = btrfs_insert_inode_ref(trans, dest, | 8334 | ret = btrfs_insert_inode_ref(trans, dest, |
8335 | new_dentry->d_name.name, | 8335 | new_dentry->d_name.name, |