diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-07-16 22:59:40 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:07 +0300 |
commit | 93de9e92c32c73d25bccbd82b1dabff3e3c2b7d2 (patch) | |
tree | 2d8652935a426f1a171293f1dd3a5f3c279fb7cb /fs/bcachefs/subvolume.c | |
parent | 813e0cecd1473d7328376f9ca56f9239bc5b8146 (diff) | |
download | linux-93de9e92c32c73d25bccbd82b1dabff3e3c2b7d2.tar.xz |
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.c | 2 |
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; |