From: Artem Bityutskiy Date: Tue, 6 Jan 2009 17:54:02 +0000 (+0200) Subject: UBIFS: do not treat all data as short term X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=a50412e3f8ce95d7ed558370d7dde5171fd04283;p=deliverable%2Flinux.git UBIFS: do not treat all data as short term 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 --- diff --git a/fs/ubifs/journal.c b/fs/ubifs/journal.c index 9b7c54e0cd2a..a11ca0958a23 100644 --- a/fs/ubifs/journal.c +++ b/fs/ubifs/journal.c @@ -208,7 +208,7 @@ again: 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;