| Submitter | Artem Bityutskiy |
|---|---|
| Date | July 15, 2012, 8:17 a.m. |
| Message ID | <1342340237-29656-1-git-send-email-dedekind1@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/171050/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/fs/ubifs/sb.c b/fs/ubifs/sb.c index ef3d1ba..49382e7 100644 --- a/fs/ubifs/sb.c +++ b/fs/ubifs/sb.c @@ -718,8 +718,9 @@ 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 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;