summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inode-item.c2
1 files changed, 1 insertions, 1 deletions
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 {