]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/btrfs/tree-log.h
Merge tag 'block-5.6-2020-02-05' of git://git.kernel.dk/linux-block
[linux.git] / fs / btrfs / tree-log.h
index 0fab84a8f6708f693720606610b6672f69c58c7e..132e43d29034eb1d4e61a6bd30edc45554d7682a 100644 (file)
@@ -30,16 +30,14 @@ static inline void btrfs_init_log_ctx(struct btrfs_log_ctx *ctx,
        INIT_LIST_HEAD(&ctx->list);
 }
 
-static inline void btrfs_set_log_full_commit(struct btrfs_fs_info *fs_info,
-                                            struct btrfs_trans_handle *trans)
+static inline void btrfs_set_log_full_commit(struct btrfs_trans_handle *trans)
 {
-       WRITE_ONCE(fs_info->last_trans_log_full_commit, trans->transid);
+       WRITE_ONCE(trans->fs_info->last_trans_log_full_commit, trans->transid);
 }
 
-static inline int btrfs_need_log_full_commit(struct btrfs_fs_info *fs_info,
-                                            struct btrfs_trans_handle *trans)
+static inline int btrfs_need_log_full_commit(struct btrfs_trans_handle *trans)
 {
-       return READ_ONCE(fs_info->last_trans_log_full_commit) ==
+       return READ_ONCE(trans->fs_info->last_trans_log_full_commit) ==
                trans->transid;
 }