projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0678cbe
)
bcachefs: Delete some dead code
author
Kent Overstreet
<kent.overstreet@gmail.com>
Tue, 11 Jan 2022 05:19:52 +0000
(
00:19
-0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:22 +0000
(17:09 -0400)
__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>
fs/bcachefs/replicas.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/replicas.c
b/fs/bcachefs/replicas.c
index 0cdd67e9ebc4ab65c5045fe78b69b88041c4d78b..c192e31d5d6805a6a1201a893faf0322320839db 100644
(file)
--- 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: */