diff options
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/sb.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/ubifs/sb.c b/fs/ubifs/sb.c index ef3d1ba6d992..15e2fc5aa60b 100644 --- a/fs/ubifs/sb.c +++ b/fs/ubifs/sb.c | |||
@@ -718,8 +718,12 @@ static int fixup_free_space(struct ubifs_info *c) | |||
718 | lnum = ubifs_next_log_lnum(c, lnum); | 718 | lnum = ubifs_next_log_lnum(c, lnum); |
719 | } | 719 | } |
720 | 720 | ||
721 | /* Fixup the current log head */ | 721 | /* |
722 | err = fixup_leb(c, c->lhead_lnum, c->lhead_offs); | 722 | * Fixup the log head which contains the only a CS node at the |
723 | * beginning. | ||
724 | */ | ||
725 | err = fixup_leb(c, c->lhead_lnum, | ||
726 | ALIGN(UBIFS_CS_NODE_SZ, c->min_io_size)); | ||
723 | if (err) | 727 | if (err) |
724 | goto out; | 728 | goto out; |
725 | 729 | ||