From 1e81f89b020758fb424f8bb0f13405706d29dfc7 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 7 Aug 2023 12:04:05 -0400 Subject: bcachefs: Fix assorted checkpatch nits Signed-off-by: Kent Overstreet --- fs/bcachefs/util.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'fs/bcachefs/util.h') diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h index 8e37ce01a728..3cec6171c58f 100644 --- a/fs/bcachefs/util.h +++ b/fs/bcachefs/util.h @@ -467,8 +467,10 @@ struct bch_pd_controller { s64 last_change; s64 last_target; - /* If true, the rate will not increase if bch2_ratelimit_delay() - * is not being called often enough. */ + /* + * If true, the rate will not increase if bch2_ratelimit_delay() + * is not being called often enough. + */ bool backpressure; }; @@ -604,6 +606,7 @@ static inline void __memcpy_u64s(void *dst, const void *src, { #ifdef CONFIG_X86_64 long d0, d1, d2; + asm volatile("rep ; movsq" : "=&c" (d0), "=&D" (d1), "=&S" (d2) : "0" (u64s), "1" (dst), "2" (src) @@ -680,6 +683,7 @@ static inline void __memmove_u64s_up(void *_dst, const void *_src, #ifdef CONFIG_X86_64 long d0, d1, d2; + asm volatile("std ;\n" "rep ; movsq\n" "cld ;\n" -- cgit v1.2.3