diff mbox

[11/21] UBI: Fastmap: Adjust comment above ubi_wl_flush()

Message ID 1339584138-69914-12-git-send-email-richard@nod.at
State New, archived
Headers show

Commit Message

Richard Weinberger June 13, 2012, 10:42 a.m. UTC
Signed-off-by: Richard Weinberger <richard@nod.at>
---
 drivers/mtd/ubi/fastmap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/mtd/ubi/fastmap.c b/drivers/mtd/ubi/fastmap.c
index b42f81c..20b016e 100644
--- a/drivers/mtd/ubi/fastmap.c
+++ b/drivers/mtd/ubi/fastmap.c
@@ -1387,8 +1387,8 @@  int ubi_update_fastmap(struct ubi_device *ubi)
 	/* Ensure that the PEBs of the old fastmap got erased and added to the
 	 * free list before we write the fastmap. Otherwise fastmp does not
 	 * see these PEBs and we leak them.
-	 * FIXME: Rewrite ubi_wl_flush() such that we can flush only the
-	 * erase work instead of all work.
+	 * We need the flush also to ensure that no to be scrubbed PEBs are in
+	 * flight.
 	 */
 	ubi_wl_flush(ubi);