提交 bbece8a3 编写于 作者: D David Sterba 提交者: Josef Bacik

btrfs: merge save_error_info helpers into one

Signed-off-by: NDavid Sterba <dsterba@suse.cz>
Signed-off-by: NJosef Bacik <jbacik@fusionio.com>
上级 74255aa0
...@@ -92,7 +92,7 @@ static const char *btrfs_decode_error(int errno, char nbuf[16]) ...@@ -92,7 +92,7 @@ static const char *btrfs_decode_error(int errno, char nbuf[16])
return errstr; return errstr;
} }
static void __save_error_info(struct btrfs_fs_info *fs_info) static void save_error_info(struct btrfs_fs_info *fs_info)
{ {
/* /*
* today we only save the error info into ram. Long term we'll * today we only save the error info into ram. Long term we'll
...@@ -101,11 +101,6 @@ static void __save_error_info(struct btrfs_fs_info *fs_info) ...@@ -101,11 +101,6 @@ static void __save_error_info(struct btrfs_fs_info *fs_info)
set_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state); set_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state);
} }
static void save_error_info(struct btrfs_fs_info *fs_info)
{
__save_error_info(fs_info);
}
/* btrfs handle error by forcing the filesystem readonly */ /* btrfs handle error by forcing the filesystem readonly */
static void btrfs_handle_error(struct btrfs_fs_info *fs_info) static void btrfs_handle_error(struct btrfs_fs_info *fs_info)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册