summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/snapshot.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/bcache/snapshot.h')
-rw-r--r--drivers/md/bcache/snapshot.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/bcache/snapshot.h b/drivers/md/bcache/snapshot.h
index 168f52271f05..81db6886ac71 100644
--- a/drivers/md/bcache/snapshot.h
+++ b/drivers/md/bcache/snapshot.h
@@ -36,9 +36,9 @@ bch_snapshot_entry(struct cache_set *c, u32 id)
?: __bch_snapshot_entry(c, id);
}
-static inline bool bch_snapshot_is_descendant(struct cache_set *c,
- struct snapshot *snapshot,
- u32 ancestor_id)
+static inline bool bch_is_snapshot_ancestor(struct cache_set *c,
+ struct snapshot *snapshot,
+ u32 ancestor_id)
{
struct snapshot_cached_entry *child, *ancestor;
u32 child_id = snapshot->id;