The commit is pushed to "branch-rh9-5.14.0-427.44.1.vz9.80.x-ovz" and will appear at g...@bitbucket.org:openvz/vzkernel.git after rh9-5.14.0-427.44.1.vz9.80.4 ------> commit ad60b17df44a067e09e3b71b7d2e10d1e0183925 Author: Alexey Kuznetsov <kuz...@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 <kuz...@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); _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel