Skip to content

Commit

Permalink
[JFFS2] Fix build failure with !CONFIG_JFFS2_FS_WRITEBUFFER
Browse files Browse the repository at this point in the history
Build failure introduced by 5bf1723
[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>
  • Loading branch information
Steve Glendinning authored and David Woodhouse committed Oct 21, 2008
1 parent 0f0254f commit f04de50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/jffs2/nodemgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,11 @@ static int jffs2_find_nextblock(struct jffs2_sb_info *c)

jffs2_sum_reset_collected(c->summary); /* reset collected summary */

#ifdef CONFIG_JFFS2_FS_WRITEBUFFER
/* adjust write buffer offset, else we get a non contiguous write bug */
if (!(c->wbuf_ofs % c->sector_size) && !c->wbuf_len)
c->wbuf_ofs = 0xffffffff;
#endif

D1(printk(KERN_DEBUG "jffs2_find_nextblock(): new nextblock = 0x%08x\n", c->nextblock->offset));

Expand Down

0 comments on commit f04de50

Please sign in to comment.