mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Merge branch 'nvme-4.13' of git://git.infradead.org/nvme into for-4.13/block
Pull NVMe changes for 4.13 from Christoph: Highlights: - UUID identifier support from Johannes - Lots of cleanups from Sagi - Host Memory Buffer support from me And lots of cleanups and smaller fixes of course. Note that the UUID identifier changes are based on top of the uuid tree. I am the maintainer of that tree and will send it to Linus as soon as 4.12 is released as various other trees depend on it as well (and the diffstat includes those changes unfortunately)
This commit is contained in:
commit
c27b2d634f
89 changed files with 1176 additions and 936 deletions
|
|
@ -825,7 +825,7 @@ fail:
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
static int uuid_equal(mdp_super_t *sb1, mdp_super_t *sb2)
|
||||
static int md_uuid_equal(mdp_super_t *sb1, mdp_super_t *sb2)
|
||||
{
|
||||
return sb1->set_uuid0 == sb2->set_uuid0 &&
|
||||
sb1->set_uuid1 == sb2->set_uuid1 &&
|
||||
|
|
@ -833,7 +833,7 @@ static int uuid_equal(mdp_super_t *sb1, mdp_super_t *sb2)
|
|||
sb1->set_uuid3 == sb2->set_uuid3;
|
||||
}
|
||||
|
||||
static int sb_equal(mdp_super_t *sb1, mdp_super_t *sb2)
|
||||
static int md_sb_equal(mdp_super_t *sb1, mdp_super_t *sb2)
|
||||
{
|
||||
int ret;
|
||||
mdp_super_t *tmp1, *tmp2;
|
||||
|
|
@ -1025,12 +1025,12 @@ static int super_90_load(struct md_rdev *rdev, struct md_rdev *refdev, int minor
|
|||
} else {
|
||||
__u64 ev1, ev2;
|
||||
mdp_super_t *refsb = page_address(refdev->sb_page);
|
||||
if (!uuid_equal(refsb, sb)) {
|
||||
if (!md_uuid_equal(refsb, sb)) {
|
||||
pr_warn("md: %s has different UUID to %s\n",
|
||||
b, bdevname(refdev->bdev,b2));
|
||||
goto abort;
|
||||
}
|
||||
if (!sb_equal(refsb, sb)) {
|
||||
if (!md_sb_equal(refsb, sb)) {
|
||||
pr_warn("md: %s has same UUID but different superblock to %s\n",
|
||||
b, bdevname(refdev->bdev, b2));
|
||||
goto abort;
|
||||
|
|
|
|||
Loading…
Reference in a new issue