summaryrefslogtreecommitdiff
path: root/fs/ubifs/replay.c
diff options
context:
space:
mode:
authorAnton Habegger <anton.habegger@gmail.com>2015-01-22 22:29:11 +0100
committerHeiko Schocher <hs@denx.de>2015-01-29 09:34:03 +0100
commit040cc7b3beedecd971274a065564e39aac7fc76e (patch)
tree206a5572b9d00973984fc7585b527ed7123c4654 /fs/ubifs/replay.c
parentdc2884315d492b1eefd9d32443c1f0aa3c0a991e (diff)
downloadu-boot-imx-040cc7b3beedecd971274a065564e39aac7fc76e.zip
u-boot-imx-040cc7b3beedecd971274a065564e39aac7fc76e.tar.gz
u-boot-imx-040cc7b3beedecd971274a065564e39aac7fc76e.tar.bz2
ubifs: Enable journal replay during mount
Enable ubifs_replay_journal during mount_ubifs, which was disabled before. This commit fix an issue with unrecoverable ubifs volumes after power cut. Therefor the gc.c is imported now from 1860e37 Linux 3.15 hs: added SPDX-License-Identifier for fs/ubifs/gc.c Signed-off-by: Anton Habegger <anton.habegger@gmail.com>
Diffstat (limited to 'fs/ubifs/replay.c')
-rw-r--r--fs/ubifs/replay.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ubifs/replay.c b/fs/ubifs/replay.c
index 7268b37..1064cb2 100644
--- a/fs/ubifs/replay.c
+++ b/fs/ubifs/replay.c
@@ -78,7 +78,6 @@ struct bud_entry {
int dirty;
};
-#ifndef __UBOOT__
/**
* set_bud_lprops - set free and dirty space used by a bud.
* @c: UBIFS file-system description object
@@ -432,7 +431,6 @@ static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len,
list_add_tail(&r->list, &c->replay_list);
return 0;
}
-#endif
/**
* ubifs_validate_entry - validate directory or extended attribute entry node.
@@ -466,7 +464,6 @@ int ubifs_validate_entry(struct ubifs_info *c,
return 0;
}
-#ifndef __UBOOT__
/**
* is_last_bud - check if the bud is the last in the journal head.
* @c: UBIFS file-system description object
@@ -1063,4 +1060,3 @@ out:
c->replaying = 0;
return err;
}
-#endif