[PATCH v2 07/17] fs:ubifs:add bakvol function define in ubifs layer

From: Bean Huo
Date: Mon Feb 01 2016 - 21:39:08 EST


From: Bean Huo <beanhuo@xxxxxxxxxx>

This file patch is to add bakvol function define that
will be called in ubifs layer.
Here has two functions will be called:
init_bakvol() disable or enable bakvol module.
ubi_corrupted_data_recovery() recover corrupted page data.

Signed-off-by: BeanHuo <beanhuo@xxxxxxxxxx>
---
fs/ubifs/ubifs.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index de75902..92bebaa 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -1479,6 +1479,8 @@ extern const struct inode_operations ubifs_dir_inode_operations;
extern const struct inode_operations ubifs_symlink_inode_operations;
extern struct backing_dev_info ubifs_backing_dev_info;
extern struct ubifs_compressor *ubifs_compressors[UBIFS_COMPR_TYPES_CNT];
+extern void init_bakvol(struct ubi_volume_desc *desc, uint8_t choice);
+extern int ubi_corrupted_data_recovery(struct ubi_volume_desc *desc);

/* io.c */
void ubifs_ro_mode(struct ubifs_info *c, int err);
--
1.9.1