aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs/dev_mtd.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-01-02 06:52:14 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 13:26:25 -0500
commitd58b27ed58a30faf376e40d19945f34301944b8d (patch)
treef34860861bc09231188565f88ba1f19e986b8fc1 /fs/logfs/dev_mtd.c
parent8f461a730242c528ca221948edceca49266a3ffb (diff)
logfs: do not use 'mtd->block_isbad' directly
Instead, use the new 'mtd_can_have_bb()' helper. Cc: Jörn Engel <joern@logfs.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'fs/logfs/dev_mtd.c')
-rw-r--r--fs/logfs/dev_mtd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/logfs/dev_mtd.c b/fs/logfs/dev_mtd.c
index 3f465882ee70..e97404d611e0 100644
--- a/fs/logfs/dev_mtd.c
+++ b/fs/logfs/dev_mtd.c
@@ -152,7 +152,7 @@ static struct page *logfs_mtd_find_first_sb(struct super_block *sb, u64 *ofs)
152 filler_t *filler = logfs_mtd_readpage; 152 filler_t *filler = logfs_mtd_readpage;
153 struct mtd_info *mtd = super->s_mtd; 153 struct mtd_info *mtd = super->s_mtd;
154 154
155 if (!mtd->block_isbad) 155 if (!mtd_can_have_bb(mtd))
156 return NULL; 156 return NULL;
157 157
158 *ofs = 0; 158 *ofs = 0;
@@ -172,7 +172,7 @@ static struct page *logfs_mtd_find_last_sb(struct super_block *sb, u64 *ofs)
172 filler_t *filler = logfs_mtd_readpage; 172 filler_t *filler = logfs_mtd_readpage;
173 struct mtd_info *mtd = super->s_mtd; 173 struct mtd_info *mtd = super->s_mtd;
174 174
175 if (!mtd->block_isbad) 175 if (!mtd_can_have_bb(mtd))
176 return NULL; 176 return NULL;
177 177
178 *ofs = mtd->size - mtd->erasesize; 178 *ofs = mtd->size - mtd->erasesize;