mirror of
https://github.com/versity/scoutfs.git
synced 2026-05-29 16:00:20 +00:00
Zero scoutfs_data_extent_val padding.
The initialization here avoids clearing __pad[], which leaks to disk. Use a struct initializer to avoid it. Signed-off-by: Auke Kok <auke.kok@versity.com>
This commit is contained in:
@@ -79,8 +79,10 @@ static void item_from_extent(struct scoutfs_key *key,
|
||||
.skdx_end = cpu_to_le64(start + len - 1),
|
||||
.skdx_len = cpu_to_le64(len),
|
||||
};
|
||||
dv->blkno = cpu_to_le64(map);
|
||||
dv->flags = flags;
|
||||
*dv = (struct scoutfs_data_extent_val) {
|
||||
.blkno = cpu_to_le64(map),
|
||||
.flags = flags,
|
||||
};
|
||||
}
|
||||
|
||||
static void ext_from_item(struct scoutfs_extent *ext,
|
||||
|
||||
Reference in New Issue
Block a user