Skip to content

Commit

Permalink
UBIFS: do not treat all data as short term
Browse files Browse the repository at this point in the history
UBIFS wrongly tells UBI that all data is short term. Use proper
hints instead. Thanks to Xiaochuan-Xu for noticing this.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Jan 20, 2009
1 parent e8b8156 commit a50412e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ubifs/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ static int reserve_space(struct ubifs_info *c, int jhead, int len)
offs = 0;

out:
err = ubifs_wbuf_seek_nolock(wbuf, lnum, offs, UBI_SHORTTERM);
err = ubifs_wbuf_seek_nolock(wbuf, lnum, offs, wbuf->dtype);
if (err)
goto out_unlock;

Expand Down

0 comments on commit a50412e

Please sign in to comment.