summaryrefslogtreecommitdiff
path: root/raid/helper.h
diff options
context:
space:
mode:
authorThomas Bertschinger <tahbertschinger@gmail.com>2024-01-15 23:41:02 -0700
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-16 01:47:05 -0500
commitf5baaf48e3e82b1caf9f5cd1207d4d6feba3a2e5 (patch)
tree59f7b0e4667df7a9d3d5a45725f2aaab3e79b4c5 /raid/helper.h
parentfb35dbfdc5a9446fbb856dae5542b23963e28b89 (diff)
move Rust sources to top level, C sources into c_src
This moves the Rust sources out of rust_src/ and into the top level. Running the bcachefs executable out of the development tree is now: $ ./target/release/bcachefs command or $ cargo run --profile release -- command instead of "./bcachefs command". Building and installing is still: $ make && make install Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'raid/helper.h')
-rw-r--r--raid/helper.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/raid/helper.h b/raid/helper.h
deleted file mode 100644
index bf682882..00000000
--- a/raid/helper.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (C) 2013 Andrea Mazzoleni
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-#ifndef __RAID_HELPER_H
-#define __RAID_HELPER_H
-
-/**
- * Inserts an integer in a sorted vector.
- *
- * This function can be used to insert indexes in order, ready to be used for
- * calling raid_rec().
- *
- * @n Number of integers currently in the vector.
- * @v Vector of integers already sorted.
- * It must have extra space for the new elemet at the end.
- * @i Value to insert.
- */
-void raid_insert(int n, int *v, int i);
-
-/**
- * Sorts a small vector of integers.
- *
- * If you have indexes not in order, you can use this function to sort them
- * before calling raid_rec().
- *
- * @n Number of integers. No more than RAID_PARITY_MAX.
- * @v Vector of integers.
- */
-void raid_sort(int n, int *v);
-
-#endif
-