[Devel] [PATCH RHEL9 COMMIT] fs/fuse/kio: cs_io_locality parameter is signed
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Jan 23 21:53:23 MSK 2025
The commit is pushed to "branch-rh9-5.14.0-427.44.1.vz9.80.x-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh9-5.14.0-427.44.1.vz9.80.4
------>
commit ad60b17df44a067e09e3b71b7d2e10d1e0183925
Author: Alexey Kuznetsov <kuznet at virtuozzo.com>
Date: Sat Jan 18 02:09:03 2025 +0800
fs/fuse/kio: cs_io_locality parameter is signed
We use -1 to relax locality and this option was accidentally
lost in kernel part.
Signed-off-by: Alexey Kuznetsov <kuznet at virtuozzo.com>
Feature: vStorage
---
fs/fuse/kio/pcs/pcs_map.c | 4 ++--
fs/fuse/kio/pcs/pcs_map.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/fuse/kio/pcs/pcs_map.c b/fs/fuse/kio/pcs/pcs_map.c
index f84cd30ed0d6..221e9f8e9463 100644
--- a/fs/fuse/kio/pcs/pcs_map.c
+++ b/fs/fuse/kio/pcs/pcs_map.c
@@ -38,8 +38,8 @@
struct kmem_cache *pcs_map_cachep;
-unsigned int cs_io_locality = 0;
-module_param(cs_io_locality, uint, 0644);
+int cs_io_locality;
+module_param(cs_io_locality, int, 0644);
MODULE_PARM_DESC(cs_io_locality, "CS IO locality");
unsigned int cs_enable_fanout = 0;
diff --git a/fs/fuse/kio/pcs/pcs_map.h b/fs/fuse/kio/pcs/pcs_map.h
index e473a26a60c7..c35ef0a8ddf1 100644
--- a/fs/fuse/kio/pcs/pcs_map.h
+++ b/fs/fuse/kio/pcs/pcs_map.h
@@ -231,7 +231,7 @@ unsigned long pcs_map_shrink_scan(struct shrinker *, struct shrink_control *sc)
void ireq_drop_tokens(struct pcs_int_request * ireq);
void pcs_map_reevaluate_dirty_status(struct pcs_map_entry * m);
-extern unsigned int cs_io_locality;
+extern int cs_io_locality;
extern unsigned int cs_enable_fanout;
void cslist_destroy(struct pcs_cs_list * csl);
More information about the Devel
mailing list