[Devel] [PATCH RHEL8 COMMIT] Revert "fs/fuse kio: add warning about jumbo chunks"

Konstantin Khorenko khorenko at virtuozzo.com
Fri Apr 23 22:20:29 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.19
------>
commit 5e65ab0bb784b996b7200e12208c4a6599aa5e85
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Tue Dec 10 16:12:57 2019 +0300

    Revert "fs/fuse kio: add warning about jumbo chunks"
    
    This reverts commit 13c78855bb98.
    
    After b9d027982dae ("fs/fuse kio: sync pcs_mds_sys_info struct")
    the patch being reverted is just incorrect because
    pcs_mds_sys_info.map_type has u8 type now and the patch being reverted
    checks 28th bit in info.sys.map_type.
    
    The proper check for jumbo chunks is implemented by another commit with
    the same subject: 6bd1a4548c09 ("fs/fuse kio: add warning about jumbo
    chunks")
    
    Found-by: Vasily Averin <vvs at virtuozzo.com>
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
    
    (cherry picked from vz7 commit
    8388cd61ffcd ("Revert "fs/fuse kio: add warning about jumbo chunks""))
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 3 ---
 fs/fuse/kio/pcs/pcs_mds_prot.h     | 2 --
 2 files changed, 5 deletions(-)

diff --git a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c b/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
index c44bc287a7c4..0fd66de77d0b 100644
--- a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
+++ b/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
@@ -346,9 +346,6 @@ static int kpcs_do_file_open(struct fuse_conn *fc, struct file *file, struct ino
 
 	if (info.sys.map_type != PCS_MAP_PLAIN) {
 		TRACE("Unsupported map_type:%x, ignore\n", info.sys.map_type);
-
-		if (info.sys.map_type & PCS_JUMBO_CHUNK_FLAG)
-			pr_warn_once("kio: fpath doesn't support jumbo chunks\n");
 		return 0;
 	}
 
diff --git a/fs/fuse/kio/pcs/pcs_mds_prot.h b/fs/fuse/kio/pcs/pcs_mds_prot.h
index 1dc1724fa94d..80c20fde1537 100644
--- a/fs/fuse/kio/pcs/pcs_mds_prot.h
+++ b/fs/fuse/kio/pcs/pcs_mds_prot.h
@@ -259,8 +259,6 @@ enum
 	PCS_MAP_LS = PCS_MAP_COMBINED, /* Log structured storage */
 };
 
-#define PCS_JUMBO_CHUNK_FLAG (1 << 28) /* Chunks size > 4G */
-
 /* Max inline file size */
 #define PCS_MAX_INLINE_SIZE 0x100000 /* 1Mb */
 


More information about the Devel mailing list