[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1613962668-15045-1-git-send-email-daizhiyuan@phytium.com.cn>
Date: Mon, 22 Feb 2021 10:57:48 +0800
From: Zhiyuan Dai <daizhiyuan@...tium.com.cn>
To: konrad.wilk@...cle.com, akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Zhiyuan Dai <daizhiyuan@...tium.com.cn>
Subject: [PATCH] mm/frontswap: minor coding style tweaks
This patch move brace position to fix coding style issues,
improve code reading.
Signed-off-by: Zhiyuan Dai <daizhiyuan@...tium.com.cn>
---
mm/frontswap.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/mm/frontswap.c b/mm/frontswap.c
index 2183a56..ea6a3b4 100644
--- a/mm/frontswap.c
+++ b/mm/frontswap.c
@@ -60,16 +60,20 @@
static u64 frontswap_failed_stores;
static u64 frontswap_invalidates;
-static inline void inc_frontswap_loads(void) {
+static inline void inc_frontswap_loads(void)
+{
data_race(frontswap_loads++);
}
-static inline void inc_frontswap_succ_stores(void) {
+static inline void inc_frontswap_succ_stores(void)
+{
data_race(frontswap_succ_stores++);
}
-static inline void inc_frontswap_failed_stores(void) {
+static inline void inc_frontswap_failed_stores(void)
+{
data_race(frontswap_failed_stores++);
}
-static inline void inc_frontswap_invalidates(void) {
+static inline void inc_frontswap_invalidates(void)
+{
data_race(frontswap_invalidates++);
}
#else
--
1.8.3.1
Powered by blists - more mailing lists