Resolves-coverity-id: 1260247
Signed-off-by: David Sterba <dsterba@xxxxxxx>
---
inode-item.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inode-item.c b/inode-item.c
index 993f3091e335..522d25a433ac 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 {
--
2.1.3
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html