diff options
author | Thomas Bertschinger <tahbertschinger@gmail.com> | 2024-01-15 23:41:02 -0700 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-16 01:47:05 -0500 |
commit | f5baaf48e3e82b1caf9f5cd1207d4d6feba3a2e5 (patch) | |
tree | 59f7b0e4667df7a9d3d5a45725f2aaab3e79b4c5 /libbcachefs/ec_types.h | |
parent | fb35dbfdc5a9446fbb856dae5542b23963e28b89 (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 'libbcachefs/ec_types.h')
-rw-r--r-- | libbcachefs/ec_types.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/libbcachefs/ec_types.h b/libbcachefs/ec_types.h deleted file mode 100644 index 976426da..00000000 --- a/libbcachefs/ec_types.h +++ /dev/null @@ -1,41 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _BCACHEFS_EC_TYPES_H -#define _BCACHEFS_EC_TYPES_H - -#include "bcachefs_format.h" - -struct bch_replicas_padded { - struct bch_replicas_entry_v1 e; - u8 pad[BCH_BKEY_PTRS_MAX]; -}; - -struct stripe { - size_t heap_idx; - u16 sectors; - u8 algorithm; - u8 nr_blocks; - u8 nr_redundant; - u8 blocks_nonempty; -}; - -struct gc_stripe { - u16 sectors; - - u8 nr_blocks; - u8 nr_redundant; - - unsigned alive:1; /* does a corresponding key exist in stripes btree? */ - u16 block_sectors[BCH_BKEY_PTRS_MAX]; - struct bch_extent_ptr ptrs[BCH_BKEY_PTRS_MAX]; - - struct bch_replicas_padded r; -}; - -struct ec_stripe_heap_entry { - size_t idx; - unsigned blocks_nonempty; -}; - -typedef HEAP(struct ec_stripe_heap_entry) ec_stripes_heap; - -#endif /* _BCACHEFS_EC_TYPES_H */ |