mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 01:04:08 +08:00
This pull request contains updates for UBI:
- Minor improvements -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABAgAGBQJZvXBZAAoJEGb5WYXrGLvB7agQAIAUlQCUuVIChJVs2YYEyyR5 PCkgFC/sjQdT3nAUpvZohP5sTwdSzBaxWWFv6lbPmh/1AFzukF95sfehsBn2qPI7 enuaSEmc5CUiuj76aTspS10l0G8oLS721pnTbTxicaq1ZHl+NIMkAFwRtaTdileq 4WBS+cfdqdj4aR/qWOTmJ8OXWEL7oHLFT1Xnc+uJpD/SltvWBj9gG8fJiwQsWIi7 qiB5KeUoU3XxYI4hQkvuhr81xhvM9iz9M/4fDJocdKS4aU1Aw/btnhXgU1yG1nOm 1Jwqxr3idrbdkLBajn9MK/DxfmdkYbcb93O7kw5QuHMvXzzhVjB824PAR/k2iK3B 3JSpGFfRgtCEQk5NeiQb0NIVTbc+H133ppxoDr9CTxgikvza3Utc27oDIxUkQKuZ Cp/2TcoD0e1/+ul22QO8TQLjfpSVo34wLOO7aBEfuWtwYwPoSkfJv0BjBzHGdQUj XQXjdItPhlNp/tEHdto62LIZzae2C+FEHYWWIRRSh505tM8V/69skOaOp3NRmFUQ SmX6Wzuc1i6b3UjegvIJsZfrY+0eZNE9n3UufSyqhT6GKV0oOZhyvTsrIkGuJ3L5 LJm+3BApQGEVi2rHFa8dBpcibVn7kIFVVTmKTPkOpen9AnWXlsrjg41N02FxNo+J ewhIkECzGMxLxtxHy+yp =gwDT -----END PGP SIGNATURE----- Merge tag 'upstream-4.14-rc1' of git://git.infradead.org/linux-ubifs Pull UBI updates from Richard Weinberger: "Minor improvements" * tag 'upstream-4.14-rc1' of git://git.infradead.org/linux-ubifs: UBI: Fix two typos in comments ubi: fastmap: fix spelling mistake: "invalidiate" -> "invalidate" ubi: pr_err() strings should end with newlines ubi: pr_err() strings should end with newlines ubi: pr_err() strings should end with newlines
This commit is contained in:
commit
194a4ef902
@ -383,7 +383,7 @@ int ubiblock_create(struct ubi_volume_info *vi)
|
||||
/* Initialize the gendisk of this ubiblock device */
|
||||
gd = alloc_disk(1);
|
||||
if (!gd) {
|
||||
pr_err("UBI: block: alloc_disk failed");
|
||||
pr_err("UBI: block: alloc_disk failed\n");
|
||||
ret = -ENODEV;
|
||||
goto out_free_dev;
|
||||
}
|
||||
@ -607,7 +607,7 @@ static void __init ubiblock_create_from_param(void)
|
||||
desc = open_volume_desc(p->name, p->ubi_num, p->vol_id);
|
||||
if (IS_ERR(desc)) {
|
||||
pr_err(
|
||||
"UBI: block: can't open volume on ubi%d_%d, err=%ld",
|
||||
"UBI: block: can't open volume on ubi%d_%d, err=%ld\n",
|
||||
p->ubi_num, p->vol_id, PTR_ERR(desc));
|
||||
continue;
|
||||
}
|
||||
@ -618,7 +618,7 @@ static void __init ubiblock_create_from_param(void)
|
||||
ret = ubiblock_create(&vi);
|
||||
if (ret) {
|
||||
pr_err(
|
||||
"UBI: block: can't add '%s' volume on ubi%d_%d, err=%d",
|
||||
"UBI: block: can't add '%s' volume on ubi%d_%d, err=%d\n",
|
||||
vi.name, p->ubi_num, p->vol_id, ret);
|
||||
continue;
|
||||
}
|
||||
|
@ -825,7 +825,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
|
||||
for (i = 0; i < UBI_MAX_DEVICES; i++) {
|
||||
ubi = ubi_devices[i];
|
||||
if (ubi && mtd->index == ubi->mtd->index) {
|
||||
pr_err("ubi: mtd%d is already attached to ubi%d",
|
||||
pr_err("ubi: mtd%d is already attached to ubi%d\n",
|
||||
mtd->index, i);
|
||||
return -EEXIST;
|
||||
}
|
||||
@ -840,7 +840,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
|
||||
* no sense to attach emulated MTD devices, so we prohibit this.
|
||||
*/
|
||||
if (mtd->type == MTD_UBIVOLUME) {
|
||||
pr_err("ubi: refuse attaching mtd%d - it is already emulated on top of UBI",
|
||||
pr_err("ubi: refuse attaching mtd%d - it is already emulated on top of UBI\n",
|
||||
mtd->index);
|
||||
return -EINVAL;
|
||||
}
|
||||
@ -851,7 +851,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
|
||||
if (!ubi_devices[ubi_num])
|
||||
break;
|
||||
if (ubi_num == UBI_MAX_DEVICES) {
|
||||
pr_err("ubi: only %d UBI devices may be created",
|
||||
pr_err("ubi: only %d UBI devices may be created\n",
|
||||
UBI_MAX_DEVICES);
|
||||
return -ENFILE;
|
||||
}
|
||||
@ -861,7 +861,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
|
||||
|
||||
/* Make sure ubi_num is not busy */
|
||||
if (ubi_devices[ubi_num]) {
|
||||
pr_err("ubi: ubi%i already exists", ubi_num);
|
||||
pr_err("ubi: ubi%i already exists\n", ubi_num);
|
||||
return -EEXIST;
|
||||
}
|
||||
}
|
||||
@ -1166,7 +1166,7 @@ static int __init ubi_init(void)
|
||||
BUILD_BUG_ON(sizeof(struct ubi_vid_hdr) != 64);
|
||||
|
||||
if (mtd_devs > UBI_MAX_DEVICES) {
|
||||
pr_err("UBI error: too many MTD devices, maximum is %d",
|
||||
pr_err("UBI error: too many MTD devices, maximum is %d\n",
|
||||
UBI_MAX_DEVICES);
|
||||
return -EINVAL;
|
||||
}
|
||||
@ -1178,7 +1178,7 @@ static int __init ubi_init(void)
|
||||
|
||||
err = misc_register(&ubi_ctrl_cdev);
|
||||
if (err) {
|
||||
pr_err("UBI error: cannot register device");
|
||||
pr_err("UBI error: cannot register device\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@ -1205,7 +1205,7 @@ static int __init ubi_init(void)
|
||||
mtd = open_mtd_device(p->name);
|
||||
if (IS_ERR(mtd)) {
|
||||
err = PTR_ERR(mtd);
|
||||
pr_err("UBI error: cannot open mtd %s, error %d",
|
||||
pr_err("UBI error: cannot open mtd %s, error %d\n",
|
||||
p->name, err);
|
||||
/* See comment below re-ubi_is_module(). */
|
||||
if (ubi_is_module())
|
||||
@ -1218,7 +1218,7 @@ static int __init ubi_init(void)
|
||||
p->vid_hdr_offs, p->max_beb_per1024);
|
||||
mutex_unlock(&ubi_devices_mutex);
|
||||
if (err < 0) {
|
||||
pr_err("UBI error: cannot attach mtd%d",
|
||||
pr_err("UBI error: cannot attach mtd%d\n",
|
||||
mtd->index);
|
||||
put_mtd_device(mtd);
|
||||
|
||||
@ -1242,7 +1242,7 @@ static int __init ubi_init(void)
|
||||
|
||||
err = ubiblock_init();
|
||||
if (err) {
|
||||
pr_err("UBI error: block: cannot initialize, error %d", err);
|
||||
pr_err("UBI error: block: cannot initialize, error %d\n", err);
|
||||
|
||||
/* See comment above re-ubi_is_module(). */
|
||||
if (ubi_is_module())
|
||||
@ -1265,7 +1265,7 @@ out_dev_unreg:
|
||||
misc_deregister(&ubi_ctrl_cdev);
|
||||
out:
|
||||
class_unregister(&ubi_class);
|
||||
pr_err("UBI error: cannot initialize UBI, error %d", err);
|
||||
pr_err("UBI error: cannot initialize UBI, error %d\n", err);
|
||||
return err;
|
||||
}
|
||||
late_initcall(ubi_init);
|
||||
|
@ -1667,7 +1667,7 @@ err:
|
||||
|
||||
ret = invalidate_fastmap(ubi);
|
||||
if (ret < 0) {
|
||||
ubi_err(ubi, "Unable to invalidiate current fastmap!");
|
||||
ubi_err(ubi, "Unable to invalidate current fastmap!");
|
||||
ubi_ro_mode(ubi);
|
||||
} else {
|
||||
return_fm_pebs(ubi, old_fm);
|
||||
|
@ -229,7 +229,7 @@ struct ubi_ec_hdr {
|
||||
* copy. UBI also calculates data CRC when the data is moved and stores it at
|
||||
* the @data_crc field of the copy (P1). So when UBI needs to pick one physical
|
||||
* eraseblock of two (P or P1), the @copy_flag of the newer one (P1) is
|
||||
* examined. If it is cleared, the situation* is simple and the newer one is
|
||||
* examined. If it is cleared, the situation is simple and the newer one is
|
||||
* picked. If it is set, the data CRC of the copy (P1) is examined. If the CRC
|
||||
* checksum is correct, this physical eraseblock is selected (P1). Otherwise
|
||||
* the older one (P) is selected.
|
||||
@ -389,7 +389,7 @@ struct ubi_vtbl_record {
|
||||
#define UBI_FM_POOL_MAGIC 0x67AF4D08
|
||||
#define UBI_FM_EBA_MAGIC 0xf0c040a8
|
||||
|
||||
/* A fastmap supber block can be located between PEB 0 and
|
||||
/* A fastmap super block can be located between PEB 0 and
|
||||
* UBI_FM_MAX_START */
|
||||
#define UBI_FM_MAX_START 64
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user