commit | ee787f9550534612a4694cc4ec9f2d397d4b5752 | [log] [tgz] |
---|---|---|
author | David Sterba <dsterba@suse.com> | Fri Mar 29 02:07:02 2019 +0100 |
committer | David Sterba <dsterba@suse.com> | Mon Mar 23 17:01:44 2020 +0100 |
tree | 240e8387a5bc65dc5236e686e8a5893b6e95e0f5 | |
parent | dcc3eb9638c3c927f1597075e851d0a16300a876 [diff] |
btrfs: use struct_size to calculate size of raid hash table The struct_size macro does the same calculation and is safe regarding overflows. Though we're not expecting them to happen, use the helper for clarity. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>