Loading fs/btrfs/tree-log.c +3 −3 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ static int start_log_trans(struct btrfs_trans_handle *trans, mutex_lock(&root->log_mutex); if (root->log_root) { if (btrfs_need_log_full_commit(fs_info, trans)) { if (btrfs_need_log_full_commit(trans)) { ret = -EAGAIN; goto out; } Loading Loading @@ -3077,7 +3077,7 @@ int btrfs_sync_log(struct btrfs_trans_handle *trans, } /* bail out if we need to do a full commit */ if (btrfs_need_log_full_commit(fs_info, trans)) { if (btrfs_need_log_full_commit(trans)) { ret = -EAGAIN; mutex_unlock(&root->log_mutex); goto out; Loading Loading @@ -3184,7 +3184,7 @@ int btrfs_sync_log(struct btrfs_trans_handle *trans, * now that we've moved on to the tree of log tree roots, * check the full commit flag again */ if (btrfs_need_log_full_commit(fs_info, trans)) { if (btrfs_need_log_full_commit(trans)) { blk_finish_plug(&plug); btrfs_wait_tree_log_extents(log, mark); mutex_unlock(&log_root_tree->log_mutex); Loading fs/btrfs/tree-log.h +2 −3 Original line number Diff line number Diff line Loading @@ -36,10 +36,9 @@ static inline void btrfs_set_log_full_commit(struct btrfs_fs_info *fs_info, WRITE_ONCE(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; } Loading Loading
fs/btrfs/tree-log.c +3 −3 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ static int start_log_trans(struct btrfs_trans_handle *trans, mutex_lock(&root->log_mutex); if (root->log_root) { if (btrfs_need_log_full_commit(fs_info, trans)) { if (btrfs_need_log_full_commit(trans)) { ret = -EAGAIN; goto out; } Loading Loading @@ -3077,7 +3077,7 @@ int btrfs_sync_log(struct btrfs_trans_handle *trans, } /* bail out if we need to do a full commit */ if (btrfs_need_log_full_commit(fs_info, trans)) { if (btrfs_need_log_full_commit(trans)) { ret = -EAGAIN; mutex_unlock(&root->log_mutex); goto out; Loading Loading @@ -3184,7 +3184,7 @@ int btrfs_sync_log(struct btrfs_trans_handle *trans, * now that we've moved on to the tree of log tree roots, * check the full commit flag again */ if (btrfs_need_log_full_commit(fs_info, trans)) { if (btrfs_need_log_full_commit(trans)) { blk_finish_plug(&plug); btrfs_wait_tree_log_extents(log, mark); mutex_unlock(&log_root_tree->log_mutex); Loading
fs/btrfs/tree-log.h +2 −3 Original line number Diff line number Diff line Loading @@ -36,10 +36,9 @@ static inline void btrfs_set_log_full_commit(struct btrfs_fs_info *fs_info, WRITE_ONCE(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; } Loading