diff options
Diffstat (limited to 'ANDROID_3.4.5/fs/ubifs/sb.c')
-rw-r--r-- | ANDROID_3.4.5/fs/ubifs/sb.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ANDROID_3.4.5/fs/ubifs/sb.c b/ANDROID_3.4.5/fs/ubifs/sb.c index 771f7fb6..a7be8e2b 100644 --- a/ANDROID_3.4.5/fs/ubifs/sb.c +++ b/ANDROID_3.4.5/fs/ubifs/sb.c @@ -724,8 +724,12 @@ static int fixup_free_space(struct ubifs_info *c) lnum = ubifs_next_log_lnum(c, lnum); } - /* Fixup the current log head */ - err = fixup_leb(c, c->lhead_lnum, c->lhead_offs); + /* + * Fixup the log head which contains the only a CS node at the + * beginning. + */ + err = fixup_leb(c, c->lhead_lnum, + ALIGN(UBIFS_CS_NODE_SZ, c->min_io_size)); if (err) goto out; |