fs-verity: Use struct_size() helper in enable_verity()

Follow the best practice for allocating a variable-sized structure.

Signed-off-by: Zhang Jianhua <chris.zjh@huawei.com>
[ebiggers: adjusted commit message]
Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20220519022450.2434483-1-chris.zjh@huawei.com
This commit is contained in:
Zhang Jianhua 2022-05-19 10:24:50 +08:00 • committed by Eric Biggers
commit e6af1bb077