diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-01-11 08:19:52 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:22 +0300 |
commit | 54460a6292b08a8045d8681ac4331dfb9c385017 (patch) | |
tree | 15b513e40f1d3e63da4fee68452f0e267f9feb02 /fs | |
parent | 0678cbe2cbc586c0055de2c04602bf8136bcc3fc (diff) | |
download | linux-54460a6292b08a8045d8681ac4331dfb9c385017.tar.xz |
bcachefs: Delete some dead code
__bch2_mark_replicas() is now only used in one place, so inline it into
the caller.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/replicas.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/fs/bcachefs/replicas.c b/fs/bcachefs/replicas.c index 0cdd67e9ebc4..c192e31d5d68 100644 --- a/fs/bcachefs/replicas.c +++ b/fs/bcachefs/replicas.c @@ -421,18 +421,10 @@ err: goto out; } -static int __bch2_mark_replicas(struct bch_fs *c, - struct bch_replicas_entry *r, - bool check) -{ - return likely(bch2_replicas_marked(c, r)) ? 0 - : check ? -1 - : bch2_mark_replicas_slowpath(c, r); -} - int bch2_mark_replicas(struct bch_fs *c, struct bch_replicas_entry *r) { - return __bch2_mark_replicas(c, r, false); + return likely(bch2_replicas_marked(c, r)) + ? 0 : bch2_mark_replicas_slowpath(c, r); } /* replicas delta list: */ |