Commit d58b27ed58a30faf376e40d19945f34301944b8d
Committed by
David Woodhouse
1 parent
8f461a7302
Exists in
master
and in
6 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
fs/logfs/dev_mtd.c
... | ... | @@ -152,7 +152,7 @@ |
152 | 152 | filler_t *filler = logfs_mtd_readpage; |
153 | 153 | struct mtd_info *mtd = super->s_mtd; |
154 | 154 | |
155 | - if (!mtd->block_isbad) | |
155 | + if (!mtd_can_have_bb(mtd)) | |
156 | 156 | return NULL; |
157 | 157 | |
158 | 158 | *ofs = 0; |
... | ... | @@ -172,7 +172,7 @@ |
172 | 172 | filler_t *filler = logfs_mtd_readpage; |
173 | 173 | struct mtd_info *mtd = super->s_mtd; |
174 | 174 | |
175 | - if (!mtd->block_isbad) | |
175 | + if (!mtd_can_have_bb(mtd)) | |
176 | 176 | return NULL; |
177 | 177 | |
178 | 178 | *ofs = mtd->size - mtd->erasesize; |