Merge tag 'upstream-3.5-rc8' of git://git.infradead.org/linux-ubifs
Merge commit. Changes below are compared with the first parent: 85efc72a.
Changes
1 files changed · +6 −2
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| fs/ubifs/sb.c | modified | +6 | −2 | View file |
fs/ubifs/sb.c
View filediff --git a/fs/ubifs/sb.c b/fs/ubifs/sb.c
index ef3d1ba..15e2fc5 100644
--- a/fs/ubifs/sb.c
+++ b/fs/ubifs/sb.c
@@ -718,8 +718,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;