Skip to content

Commit

Permalink
btrfs: merge save_error_info helpers into one
Browse files Browse the repository at this point in the history
Signed-off-by: David Sterba <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
  • Loading branch information
kdave authored and Josef Bacik committed May 6, 2013
1 parent 74255aa commit bbece8a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static const char *btrfs_decode_error(int errno, char nbuf[16])
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
Expand All @@ -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);
}

static void save_error_info(struct btrfs_fs_info *fs_info)
{
__save_error_info(fs_info);
}

/* btrfs handle error by forcing the filesystem readonly */
static void btrfs_handle_error(struct btrfs_fs_info *fs_info)
{
Expand Down

0 comments on commit bbece8a

Please sign in to comment.