Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282917
b: refs/heads/master
c: d58b27e
h: refs/heads/master
i:
  282915: de05bbd
v: v3
  • Loading branch information
Artem Bityutskiy authored and David Woodhouse committed Jan 9, 2012
1 parent 469328d commit 1ccf464
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f461a730242c528ca221948edceca49266a3ffb
refs/heads/master: d58b27ed58a30faf376e40d19945f34301944b8d
4 changes: 2 additions & 2 deletions trunk/fs/logfs/dev_mtd.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ static struct page *logfs_mtd_find_first_sb(struct super_block *sb, u64 *ofs)
filler_t *filler = logfs_mtd_readpage;
struct mtd_info *mtd = super->s_mtd;

if (!mtd->block_isbad)
if (!mtd_can_have_bb(mtd))
return NULL;

*ofs = 0;
Expand All @@ -172,7 +172,7 @@ static struct page *logfs_mtd_find_last_sb(struct super_block *sb, u64 *ofs)
filler_t *filler = logfs_mtd_readpage;
struct mtd_info *mtd = super->s_mtd;

if (!mtd->block_isbad)
if (!mtd_can_have_bb(mtd))
return NULL;

*ofs = mtd->size - mtd->erasesize;
Expand Down

0 comments on commit 1ccf464

Please sign in to comment.