projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f461a7
)
logfs: do not use 'mtd->block_isbad' directly
author
Artem Bityutskiy
<
[email protected]
>
Mon, 2 Jan 2012 11:52:14 +0000
(13:52 +0200)
committer
David Woodhouse
<
[email protected]
>
Mon, 9 Jan 2012 18:26:25 +0000
(18:26 +0000)
Instead, use the new 'mtd_can_have_bb()' helper.
Cc: Jörn Engel <
[email protected]
>
Signed-off-by: Artem Bityutskiy <
[email protected]
>
Signed-off-by: David Woodhouse <
[email protected]
>
fs/logfs/dev_mtd.c
patch
|
blob
|
history
diff --git
a/fs/logfs/dev_mtd.c
b/fs/logfs/dev_mtd.c
index 3f465882ee70b84dc7579beb24fe428c6edf9963..e97404d611e0abf4f627d6c080aea0c0739422f0 100644
(file)
--- 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)
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;
@@
-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;