summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/tree-log.h')
-rw-r--r--fs/btrfs/tree-log.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/tree-log.h b/fs/btrfs/tree-log.h
index bdf63d0c4128..132e43d29034 100644
--- a/fs/btrfs/tree-log.h
+++ b/fs/btrfs/tree-log.h
@@ -30,10 +30,9 @@ static inline void btrfs_init_log_ctx(struct btrfs_log_ctx *ctx,
30 INIT_LIST_HEAD(&ctx->list); 30 INIT_LIST_HEAD(&ctx->list);
31} 31}
32 32
33static inline void btrfs_set_log_full_commit(struct btrfs_fs_info *fs_info, 33static inline void btrfs_set_log_full_commit(struct btrfs_trans_handle *trans)
34 struct btrfs_trans_handle *trans)
35{ 34{
36 WRITE_ONCE(fs_info->last_trans_log_full_commit, trans->transid); 35 WRITE_ONCE(trans->fs_info->last_trans_log_full_commit, trans->transid);
37} 36}
38 37
39static inline int btrfs_need_log_full_commit(struct btrfs_trans_handle *trans) 38static inline int btrfs_need_log_full_commit(struct btrfs_trans_handle *trans)