summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/subvolume.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-07-16 15:59:40 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:10:07 -0400
commit93de9e92c32c73d25bccbd82b1dabff3e3c2b7d2 (patch)
tree2d8652935a426f1a171293f1dd3a5f3c279fb7cb /fs/bcachefs/subvolume.c
parent813e0cecd1473d7328376f9ca56f9239bc5b8146 (diff)
downloadlinux-93de9e92c32c73d25bccbd82b1dabff3e3c2b7d2.tar.gz
linux-93de9e92c32c73d25bccbd82b1dabff3e3c2b7d2.tar.bz2
linux-93de9e92c32c73d25bccbd82b1dabff3e3c2b7d2.zip
bcachefs: Inline bch2_snapshot_is_ancestor() fast path
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/subvolume.c')
-rw-r--r--fs/bcachefs/subvolume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/subvolume.c b/fs/bcachefs/subvolume.c
index cf8af617ac00..287492c29bcc 100644
--- a/fs/bcachefs/subvolume.c
+++ b/fs/bcachefs/subvolume.c
@@ -25,7 +25,7 @@ static inline u32 get_ancestor_below(struct snapshot_table *t, u32 id, u32 ances
return s->parent;
}
-bool bch2_snapshot_is_ancestor(struct bch_fs *c, u32 id, u32 ancestor)
+bool __bch2_snapshot_is_ancestor(struct bch_fs *c, u32 id, u32 ancestor)
{
struct snapshot_table *t;
bool ret;