aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/hasher.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/hasher.c')
-rw-r--r--fs/btrfs/hasher.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/fs/btrfs/hasher.c b/fs/btrfs/hasher.c
deleted file mode 100644
index 96702da4329..00000000000
--- a/fs/btrfs/hasher.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "kerncompat.h"
-#include "hash.h"
-
-int main() {
- u64 result;
- int ret;
- char line[255];
- char *p;
- while(1) {
- p = fgets(line, 255, stdin);
- if (!p)
- break;
- if (strlen(line) == 0)
- continue;
- ret = btrfs_name_hash(line, strlen(line), &result);
- BUG_ON(ret);
- printf("hash returns %Lu\n", result);
- }
- return 0;
-}