bcachefs: fix ifdef for x86_64 asm
authorDan Robertson <dan@dlrobertson.com>
Sat, 3 Jul 2021 01:22:06 +0000 (21:22 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:07 +0000 (17:09 -0400)
The implementation of prefetch_four_cachelines should use ifdef
CONFIG_X86_64 to conditionally compile x86_64 asm.

Signed-off-by: Dan Robertson <dan@dlrobertson.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bset.c

index 84c4664c9912744ba90edec187e6c8b9a3514c76..9484f28be6de6b8fc875c0ee49858554bf6d5b1d 100644 (file)
@@ -1181,7 +1181,7 @@ static struct bkey_packed *bset_search_write_set(const struct btree *b,
 
 static inline void prefetch_four_cachelines(void *p)
 {
-#if CONFIG_X86_64
+#ifdef CONFIG_X86_64
        asm("prefetcht0 (-127 + 64 * 0)(%0);"
            "prefetcht0 (-127 + 64 * 1)(%0);"
            "prefetcht0 (-127 + 64 * 2)(%0);"