[PATCH 07/26] block: fix wrong type for discard_start/size byte ranges
Ahmad Fatoum
a.fatoum at barebox.org
Fri Jun 26 01:42:18 PDT 2026
When these members were first added, they were loff_t, but then later on
erroneously changed to sector_t/blkcnt_t.
The way they are used is still bogus and will be fixed in the follow-up
commit.
No functional change.
Fixes: 130fbc7f6c67 ("block: use 64-bit types for sector offset and count on all platforms")
Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
include/block.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/block.h b/include/block.h
index aeb8e990937b..fa916f8d4ee7 100644
--- a/include/block.h
+++ b/include/block.h
@@ -51,8 +51,8 @@ struct block_device {
int rdbufsize;
int blkmask;
- sector_t discard_start;
- blkcnt_t discard_size;
+ loff_t discard_start;
+ loff_t discard_size;
struct list_head buffered_blocks;
struct list_head idle_blocks;
--
2.47.3
More information about the barebox
mailing list