bcachefs: Add a comment to clarify the removal of __counted_by
PATCH 1/1 bcachefs: Add a comment to clarify the removal of __counted_by
Signed-off-by Alan Huang <[email protected]>
--- fs/bcachefs/xattr_format.h | 6 ++++++ 1 file changed, 6 insertions(+)
fs/bcachefs/xattr_format.h +6 -0
@@ -13,6 +13,12 @@ struct bch_xattr {__u8 x_type;__u8 x_name_len;__le16 x_val_len; +/* +* Do not reintroduce __counted_by(x_name_len) here. +* There is a value following x_name. __counted_by requires +* that the flexible array member contains exactly the +* amount of elements that are specified. +*/ __u8 x_name[]; } __packed__aligned(8) ;
Signature · 1 line
2.48.1