From 1c6fdbd8f2465ddfb73a01ec620cbf3d14044e1a Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 16 Mar 2017 22:18:50 -0800 Subject: bcachefs: Initial commit Initially forked from drivers/md/bcache, bcachefs is a new copy-on-write filesystem with every feature you could possibly want. Website: https://bcachefs.org Signed-off-by: Kent Overstreet --- fs/bcachefs/extents_types.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 fs/bcachefs/extents_types.h (limited to 'fs/bcachefs/extents_types.h') diff --git a/fs/bcachefs/extents_types.h b/fs/bcachefs/extents_types.h new file mode 100644 index 000000000000..27b2bde85e5c --- /dev/null +++ b/fs/bcachefs/extents_types.h @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _BCACHEFS_EXTENTS_TYPES_H +#define _BCACHEFS_EXTENTS_TYPES_H + +#include "bcachefs_format.h" + +struct bch_extent_crc_unpacked { + u8 csum_type; + u8 compression_type; + + u16 compressed_size; + u16 uncompressed_size; + + u16 offset; + u16 live_size; + + u16 nonce; + + struct bch_csum csum; +}; + +struct extent_pick_ptr { + struct bch_extent_ptr ptr; + struct bch_extent_crc_unpacked crc; +}; + +#endif /* _BCACHEFS_EXTENTS_TYPES_H */ -- cgit v1.2.3