diff options
author | David Sterba <dsterba@suse.cz> | 2013-03-11 13:07:45 -0400 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-05-06 15:52:55 -0400 |
commit | bbece8a3f00a02bbfc63531651fd70ef56c5e916 (patch) | |
tree | 645854a2b988954962b5eb02c126b6849f8cd32c /fs | |
parent | 74255aa07d292385ca3a4a4e8f0bc492d9bdd116 (diff) |
btrfs: merge save_error_info helpers into one
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/super.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 714ae479de2e..8168ceca4754 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -92,7 +92,7 @@ static const char *btrfs_decode_error(int errno, char nbuf[16]) | |||
92 | return errstr; | 92 | return errstr; |
93 | } | 93 | } |
94 | 94 | ||
95 | static void __save_error_info(struct btrfs_fs_info *fs_info) | 95 | static void save_error_info(struct btrfs_fs_info *fs_info) |
96 | { | 96 | { |
97 | /* | 97 | /* |
98 | * today we only save the error info into ram. Long term we'll | 98 | * 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 | set_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state); | 101 | set_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state); |
102 | } | 102 | } |
103 | 103 | ||
104 | static void save_error_info(struct btrfs_fs_info *fs_info) | ||
105 | { | ||
106 | __save_error_info(fs_info); | ||
107 | } | ||
108 | |||
109 | /* btrfs handle error by forcing the filesystem readonly */ | 104 | /* btrfs handle error by forcing the filesystem readonly */ |
110 | static void btrfs_handle_error(struct btrfs_fs_info *fs_info) | 105 | static void btrfs_handle_error(struct btrfs_fs_info *fs_info) |
111 | { | 106 | { |