lkml.org 
[lkml]   [2016]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 08/17] drivers:mtd:ubi:disable bakvol function while writing volume table
Date
From: Bean Huo <beanhuo@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@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
\
 
 \ /
  Last update: 2016-02-02 04:21    [W:0.118 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site