mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Merge branch 'uuid-types' of bombadil.infradead.org:public_git/uuid into nvme-base
This commit is contained in:
commit
fdd050b5b3
76 changed files with 373 additions and 500 deletions
|
|
@ -222,13 +222,6 @@ struct device *nd_btt_create(struct nd_region *nd_region)
|
|||
return dev;
|
||||
}
|
||||
|
||||
static bool uuid_is_null(u8 *uuid)
|
||||
{
|
||||
static const u8 null_uuid[16];
|
||||
|
||||
return (memcmp(uuid, null_uuid, 16) == 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* nd_btt_arena_is_valid - check if the metadata layout is valid
|
||||
* @nd_btt: device with BTT geometry and backing device info
|
||||
|
|
@ -249,7 +242,7 @@ bool nd_btt_arena_is_valid(struct nd_btt *nd_btt, struct btt_sb *super)
|
|||
if (memcmp(super->signature, BTT_SIG, BTT_SIG_LEN) != 0)
|
||||
return false;
|
||||
|
||||
if (!uuid_is_null(super->parent_uuid))
|
||||
if (!guid_is_null((guid_t *)&super->parent_uuid))
|
||||
if (memcmp(super->parent_uuid, parent_uuid, 16) != 0)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue