summaryrefslogtreecommitdiff
path: root/fs/bcachefs/compress.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-07-07 04:38:29 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:10:06 -0400
commitc8b4534d820f47480e7d5efb38d13e10919ccc7c (patch)
tree41edf7df973f36eb80b420ef6e62c4857d8d07ed /fs/bcachefs/compress.c
parent8726dc936fb79fda4a0280033cdd180f7f343cdd (diff)
bcachefs: Delete redundant log messages
Now that we have distinct error codes for different memory allocation failures, the early init log messages are no longer needed. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/compress.c')
-rw-r--r--fs/bcachefs/compress.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/fs/bcachefs/compress.c b/fs/bcachefs/compress.c
index 38a3475b1897..48427a270840 100644
--- a/fs/bcachefs/compress.c
+++ b/fs/bcachefs/compress.c
@@ -542,7 +542,7 @@ void bch2_fs_compress_exit(struct bch_fs *c)
mempool_exit(&c->compression_bounce[READ]);
}
-static int _bch2_fs_compress_init(struct bch_fs *c, u64 features)
+static int __bch2_fs_compress_init(struct bch_fs *c, u64 features)
{
size_t decompress_workspace_size = 0;
bool decompress_workspace_needed;
@@ -612,17 +612,6 @@ static int _bch2_fs_compress_init(struct bch_fs *c, u64 features)
return 0;
}
-static int __bch2_fs_compress_init(struct bch_fs *c, u64 features)
-{
- int ret;
-
- pr_verbose_init(c->opts, "");
- ret = _bch2_fs_compress_init(c, features);
- pr_verbose_init(c->opts, "ret %i", ret);
-
- return ret;
-}
-
int bch2_fs_compress_init(struct bch_fs *c)
{
u64 f = c->sb.features;