diff options
Diffstat (limited to 'fs/ubifs/lpt.c')
-rw-r--r-- | fs/ubifs/lpt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/ubifs/lpt.c b/fs/ubifs/lpt.c index 8b9ee9fe0a41..6189c74d97f0 100644 --- a/fs/ubifs/lpt.c +++ b/fs/ubifs/lpt.c | |||
@@ -701,8 +701,8 @@ int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first, | |||
701 | alen = ALIGN(len, c->min_io_size); | 701 | alen = ALIGN(len, c->min_io_size); |
702 | set_ltab(c, lnum, c->leb_size - alen, alen - len); | 702 | set_ltab(c, lnum, c->leb_size - alen, alen - len); |
703 | memset(p, 0xff, alen - len); | 703 | memset(p, 0xff, alen - len); |
704 | err = ubi_leb_change(c->ubi, lnum++, buf, alen, | 704 | err = ubifs_leb_change(c, lnum++, buf, alen, |
705 | UBI_SHORTTERM); | 705 | UBI_SHORTTERM); |
706 | if (err) | 706 | if (err) |
707 | goto out; | 707 | goto out; |
708 | p = buf; | 708 | p = buf; |
@@ -732,8 +732,8 @@ int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first, | |||
732 | set_ltab(c, lnum, c->leb_size - alen, | 732 | set_ltab(c, lnum, c->leb_size - alen, |
733 | alen - len); | 733 | alen - len); |
734 | memset(p, 0xff, alen - len); | 734 | memset(p, 0xff, alen - len); |
735 | err = ubi_leb_change(c->ubi, lnum++, buf, alen, | 735 | err = ubifs_leb_change(c, lnum++, buf, alen, |
736 | UBI_SHORTTERM); | 736 | UBI_SHORTTERM); |
737 | if (err) | 737 | if (err) |
738 | goto out; | 738 | goto out; |
739 | p = buf; | 739 | p = buf; |
@@ -780,8 +780,8 @@ int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first, | |||
780 | alen = ALIGN(len, c->min_io_size); | 780 | alen = ALIGN(len, c->min_io_size); |
781 | set_ltab(c, lnum, c->leb_size - alen, alen - len); | 781 | set_ltab(c, lnum, c->leb_size - alen, alen - len); |
782 | memset(p, 0xff, alen - len); | 782 | memset(p, 0xff, alen - len); |
783 | err = ubi_leb_change(c->ubi, lnum++, buf, alen, | 783 | err = ubifs_leb_change(c, lnum++, buf, alen, |
784 | UBI_SHORTTERM); | 784 | UBI_SHORTTERM); |
785 | if (err) | 785 | if (err) |
786 | goto out; | 786 | goto out; |
787 | p = buf; | 787 | p = buf; |
@@ -806,7 +806,7 @@ int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first, | |||
806 | alen = ALIGN(len, c->min_io_size); | 806 | alen = ALIGN(len, c->min_io_size); |
807 | set_ltab(c, lnum, c->leb_size - alen, alen - len); | 807 | set_ltab(c, lnum, c->leb_size - alen, alen - len); |
808 | memset(p, 0xff, alen - len); | 808 | memset(p, 0xff, alen - len); |
809 | err = ubi_leb_change(c->ubi, lnum++, buf, alen, UBI_SHORTTERM); | 809 | err = ubifs_leb_change(c, lnum++, buf, alen, UBI_SHORTTERM); |
810 | if (err) | 810 | if (err) |
811 | goto out; | 811 | goto out; |
812 | p = buf; | 812 | p = buf; |
@@ -826,7 +826,7 @@ int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first, | |||
826 | 826 | ||
827 | /* Write remaining buffer */ | 827 | /* Write remaining buffer */ |
828 | memset(p, 0xff, alen - len); | 828 | memset(p, 0xff, alen - len); |
829 | err = ubi_leb_change(c->ubi, lnum, buf, alen, UBI_SHORTTERM); | 829 | err = ubifs_leb_change(c, lnum, buf, alen, UBI_SHORTTERM); |
830 | if (err) | 830 | if (err) |
831 | goto out; | 831 | goto out; |
832 | 832 | ||