[PATCH v2 08/17] drivers:mtd:ubi:disable bakvol function while writing volume table

Bean Huo jackyard88 at gmail.com
Mon Feb 1 18:30:43 PST 2016


From: Bean Huo <beanhuo at micron.com>

This file patch is to modify ubi_io_write_data() function,
and disable bakvol function while wirting volume table since
volume table is rarely modified.

Signed-off-by: BeanHuo <beanhuo at micron.com>
---
 drivers/mtd/ubi/vtbl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/ubi/vtbl.c b/drivers/mtd/ubi/vtbl.c
index 80bdd5b..6103f4e 100644
--- a/drivers/mtd/ubi/vtbl.c
+++ b/drivers/mtd/ubi/vtbl.c
@@ -329,7 +329,7 @@ retry:
 		goto write_error;
 
 	/* Write the layout volume contents */
-	err = ubi_io_write_data(ubi, vtbl, new_aeb->pnum, 0, ubi->vtbl_size);
+	err = ubi_io_write_data(ubi, vtbl, new_aeb->pnum, 0, ubi->vtbl_size, 0);
 	if (err)
 		goto write_error;
 
-- 
1.9.1




More information about the linux-mtd mailing list