From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754129AbcBBCjE (ORCPT ); Mon, 1 Feb 2016 21:39:04 -0500 Received: from mail-pa0-f66.google.com ([209.85.220.66]:35300 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbcBBCcl (ORCPT ); Mon, 1 Feb 2016 21:32:41 -0500 From: Bean Huo To: richard@nod.at, dedekind1@gmail.com, adrian.hunter@intel.com, computersforpeace@gmail.com, boris.brezillon@free-electrons.com Cc: beanhuo@micron.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, zszubbocsev@micron.com, peterpandong@micron.com Subject: [PATCH v2 07/17] fs:ubifs:add bakvol function define in ubifs layer Date: Tue, 2 Feb 2016 02:30:42 +0000 Message-Id: <1454380252-16170-8-git-send-email-jackyard88@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454380252-16170-1-git-send-email-jackyard88@gmail.com> References: <1454380252-16170-1-git-send-email-jackyard88@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bean Huo 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 --- 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