diff options
Diffstat (limited to 'fs/ubifs/scan.c')
-rw-r--r-- | fs/ubifs/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ubifs/scan.c b/fs/ubifs/scan.c index 36216b46f772..37383e8011b1 100644 --- a/fs/ubifs/scan.c +++ b/fs/ubifs/scan.c | |||
@@ -148,7 +148,7 @@ struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum, | |||
148 | INIT_LIST_HEAD(&sleb->nodes); | 148 | INIT_LIST_HEAD(&sleb->nodes); |
149 | sleb->buf = sbuf; | 149 | sleb->buf = sbuf; |
150 | 150 | ||
151 | err = ubi_read(c->ubi, lnum, sbuf + offs, offs, c->leb_size - offs); | 151 | err = ubifs_leb_read(c, lnum, sbuf + offs, offs, c->leb_size - offs, 0); |
152 | if (err && err != -EBADMSG) { | 152 | if (err && err != -EBADMSG) { |
153 | ubifs_err("cannot read %d bytes from LEB %d:%d," | 153 | ubifs_err("cannot read %d bytes from LEB %d:%d," |
154 | " error %d", c->leb_size - offs, lnum, offs, err); | 154 | " error %d", c->leb_size - offs, lnum, offs, err); |
@@ -240,7 +240,7 @@ void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs, | |||
240 | int len; | 240 | int len; |
241 | 241 | ||
242 | ubifs_err("corruption at LEB %d:%d", lnum, offs); | 242 | ubifs_err("corruption at LEB %d:%d", lnum, offs); |
243 | if (dbg_failure_mode) | 243 | if (dbg_is_tst_rcvry(c)) |
244 | return; | 244 | return; |
245 | len = c->leb_size - offs; | 245 | len = c->leb_size - offs; |
246 | if (len > 8192) | 246 | if (len > 8192) |