diff --git a/inode-item.c b/inode-item.c index 993f3091..522d25a4 100644 --- a/inode-item.c +++ b/inode-item.c @@ -89,7 +89,7 @@ int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans, ptr = (unsigned long)(ref + 1); ret = 0; } else if (ret < 0) { - if (ret == EOVERFLOW) + if (ret == -EOVERFLOW) ret = -EMLINK; goto out; } else {