Signed-off-by: Nikolay Borisov <nborisov@xxxxxxxx>
---
fs/btrfs/volumes.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index a7121d72388f..7c1ddf35b7d4 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -23,6 +23,15 @@ struct btrfs_pending_bios {
struct bio *tail;
};
+struct btrfs_io_geometry {
+ u64 len; /* remaining bytes in chunk */
+ u64 offset; /* offset of logical address in chunk */
+ u64 stripe_len; /* len of single io stripe */
+ u64 stripe_nr; /* number of stripe where address falls */
+ u64 stripe_offset; /* offset of stripe in chunk */
+ u64 raid56_stripe_offset; /* offset of raid56 stripe into the chunk */
+};
+
/*
* Use sequence counter to get consistent device stat data on
* 32-bit processors.
--
2.17.1