diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index f2ff02c5513092419597ff8f6e714e1abcb7d205..94db438494df22d9c8804ef70ba6125d75cddb92 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c @@ -3346,7 +3346,7 @@ int btrfs_log_inode_parent(struct btrfs_trans_handle *trans, end_trans: dput(old_parent); if (ret < 0) { - BUG_ON(ret != -ENOSPC); + WARN_ON(ret != -ENOSPC); root->fs_info->last_trans_log_full_commit = trans->transid; ret = 1; }