Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
[pandora-kernel.git] / fs / ubifs / replay.c
index 5e97161..ccabaf1 100644 (file)
@@ -523,8 +523,7 @@ static int is_last_bud(struct ubifs_info *c, struct ubifs_bud *bud)
        if (!list_is_last(&next->list, &jh->buds_list))
                return 0;
 
-       err = ubi_read(c->ubi, next->lnum, (char *)&data,
-                      next->start, 4);
+       err = ubifs_leb_read(c, next->lnum, (char *)&data, next->start, 4, 1);
        if (err)
                return 0;