Commit f04de505e3fa322728d1a851e08bf7060b117743
Committed by
David Woodhouse
1 parent
0f0254fa8d
Exists in
master
and in
39 other branches
[JFFS2] Fix build failure with !CONFIG_JFFS2_FS_WRITEBUFFER
Build failure introduced by 5bf1723723487ddb0b9c9641b6559da96b27cc93 [JFFS2] Write buffer offset adjustment for NOR-ECC (Sibley) flash Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
fs/jffs2/nodemgmt.c
... | ... | @@ -261,9 +261,11 @@ |
261 | 261 | |
262 | 262 | jffs2_sum_reset_collected(c->summary); /* reset collected summary */ |
263 | 263 | |
264 | +#ifdef CONFIG_JFFS2_FS_WRITEBUFFER | |
264 | 265 | /* adjust write buffer offset, else we get a non contiguous write bug */ |
265 | 266 | if (!(c->wbuf_ofs % c->sector_size) && !c->wbuf_len) |
266 | 267 | c->wbuf_ofs = 0xffffffff; |
268 | +#endif | |
267 | 269 | |
268 | 270 | D1(printk(KERN_DEBUG "jffs2_find_nextblock(): new nextblock = 0x%08x\n", c->nextblock->offset)); |
269 | 271 |