summaryrefslogtreecommitdiff
path: root/fs/bcachefs/fast_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/fast_list.c')
-rw-r--r--fs/bcachefs/fast_list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/fast_list.c b/fs/bcachefs/fast_list.c
index 6be2a45be1dd..de2947cd2bcf 100644
--- a/fs/bcachefs/fast_list.c
+++ b/fs/bcachefs/fast_list.c
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-2.0
+#ifdef CONFIG_BCACHEFS_ASYNC_OBJECT_LISTS
/*
* Fast, unordered lists
@@ -166,3 +167,5 @@ int fast_list_init(struct fast_list *l)
return -ENOMEM;
return 0;
}
+
+#endif /* CONFIG_BCACHEFS_ASYNC_OBJECT_LISTS */