diff options
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index ffe92da81b8a..e935035ac034 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -2823,7 +2823,7 @@ int btrfs_sync_log(struct btrfs_trans_handle *trans, | |||
2823 | */ | 2823 | */ |
2824 | mutex_unlock(&root->log_mutex); | 2824 | mutex_unlock(&root->log_mutex); |
2825 | 2825 | ||
2826 | btrfs_init_log_ctx(&root_log_ctx); | 2826 | btrfs_init_log_ctx(&root_log_ctx, NULL); |
2827 | 2827 | ||
2828 | mutex_lock(&log_root_tree->log_mutex); | 2828 | mutex_lock(&log_root_tree->log_mutex); |
2829 | atomic_inc(&log_root_tree->log_batch); | 2829 | atomic_inc(&log_root_tree->log_batch); |
@@ -4757,7 +4757,8 @@ again: | |||
4757 | if (ret < 0) { | 4757 | if (ret < 0) { |
4758 | err = ret; | 4758 | err = ret; |
4759 | goto out_unlock; | 4759 | goto out_unlock; |
4760 | } else if (ret > 0) { | 4760 | } else if (ret > 0 && ctx && |
4761 | other_ino != btrfs_ino(ctx->inode)) { | ||
4761 | struct btrfs_key inode_key; | 4762 | struct btrfs_key inode_key; |
4762 | struct inode *other_inode; | 4763 | struct inode *other_inode; |
4763 | 4764 | ||