Skip to content

Commit 2007d28

Browse files
groeckKent Overstreet
authored andcommitted
bcachefs: rename version -> bversion for big endian builds
Builds on big endian systems fail as follows. fs/bcachefs/bkey.h: In function 'bch2_bkey_format_add_key': fs/bcachefs/bkey.h:557:41: error: 'const struct bkey' has no member named 'bversion' The original commit only renamed the variable for little endian builds. Rename it for big endian builds as well to fix the problem. Fixes: cf49f8a ("bcachefs: rename version -> bversion") Cc: Kent Overstreet <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
1 parent 9852d85 commit 2007d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/bcachefs_format.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ struct bkey {
223223
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
224224
struct bpos p;
225225
__u32 size; /* extent size, in sectors */
226-
struct bversion version;
226+
struct bversion bversion;
227227

228228
__u8 pad[1];
229229
#endif

0 commit comments

Comments
 (0)