Skip to content

Commit bbece8a

Browse files
kdaveJosef Bacik
authored andcommitted
btrfs: merge save_error_info helpers into one
Signed-off-by: David Sterba <[email protected]> Signed-off-by: Josef Bacik <[email protected]>
1 parent 74255aa commit bbece8a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

fs/btrfs/super.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static const char *btrfs_decode_error(int errno, char nbuf[16])
9292
return errstr;
9393
}
9494

95-
static void __save_error_info(struct btrfs_fs_info *fs_info)
95+
static void save_error_info(struct btrfs_fs_info *fs_info)
9696
{
9797
/*
9898
* 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)
101101
set_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state);
102102
}
103103

104-
static void save_error_info(struct btrfs_fs_info *fs_info)
105-
{
106-
__save_error_info(fs_info);
107-
}
108-
109104
/* btrfs handle error by forcing the filesystem readonly */
110105
static void btrfs_handle_error(struct btrfs_fs_info *fs_info)
111106
{

0 commit comments

Comments
 (0)