summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/log.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-05-02 12:17:29 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-02 12:17:29 -0700
commitadadfe48df3858c3c1ba52963502f38885ab2f3c (patch)
treef6e6388f5dff08878c0888ab42122fbe81710783 /fs/ubifs/log.c
parent625a3b6057e86d5079976db5648bd42289c8b6cc (diff)
parent52c6e6f990669deac3f370f1603815adb55a1dbd (diff)
downloadlinux-adadfe48df3858c3c1ba52963502f38885ab2f3c.tar.bz2
Merge branch 'for-linus' of git://git.infradead.org/ubifs-2.6
* 'for-linus' of git://git.infradead.org/ubifs-2.6: UBIFS: seek journal heads to the latest bud in replay UBIFS: do not free write-buffers when in R/O mode
Diffstat (limited to 'fs/ubifs/log.c')
-rw-r--r--fs/ubifs/log.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/fs/ubifs/log.c b/fs/ubifs/log.c
index 4d0cb1241460..40fa780ebea7 100644
--- a/fs/ubifs/log.c
+++ b/fs/ubifs/log.c
@@ -175,26 +175,6 @@ void ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud)
}
/**
- * ubifs_create_buds_lists - create journal head buds lists for remount rw.
- * @c: UBIFS file-system description object
- */
-void ubifs_create_buds_lists(struct ubifs_info *c)
-{
- struct rb_node *p;
-
- spin_lock(&c->buds_lock);
- p = rb_first(&c->buds);
- while (p) {
- struct ubifs_bud *bud = rb_entry(p, struct ubifs_bud, rb);
- struct ubifs_jhead *jhead = &c->jheads[bud->jhead];
-
- list_add_tail(&bud->list, &jhead->buds_list);
- p = rb_next(p);
- }
- spin_unlock(&c->buds_lock);
-}
-
-/**
* ubifs_add_bud_to_log - add a new bud to the log.
* @c: UBIFS file-system description object
* @jhead: journal head the bud belongs to