[Devel] [PATCH VZ9 5/10] fs/fuse/kio: cs_io_locality parameter is signed
Alexey Kuznetsov
kuznet at virtuozzo.com
Fri Jan 17 21:09:03 MSK 2025
We use -1 to relax locality and this option was accidentally
lost in kernel part
Signed-off-by: Alexey Kuznetsov <kuznet at virtuozzo.com>
---
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 f84cd30..221e9f8 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 e473a26..c35ef0a 100644
--- a/fs/fuse/kio/pcs/pcs_map.h
+++ b/fs/fuse/kio/pcs/pcs_map.h
@@ -231,7 +231,7 @@ static inline struct pcs_cluster_core *cc_from_map(struct pcs_map_entry * m)
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);
--
1.8.3.1
More information about the Devel
mailing list