fs/orangefs: remove ORANGEFS_CACHE_CREATE_FLAGS
authorVlastimil Babka <vbabka@suse.cz>
Tue, 23 Jan 2024 16:05:35 +0000 (17:05 +0100)
committerMike Marshall <hubcap@omnibond.com>
Wed, 14 Feb 2024 20:54:50 +0000 (15:54 -0500)
The flags were set to SLAB_RED_ZONE when CONFIG_DEBUG_SLAB was enabled.
With SLAB gone, this is now dead code so remove it. With SLUB, debugging
options including red zoning can be set for orangefs caches by the
slab_debug boot parameter.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-cache.c
fs/orangefs/orangefs-kernel.h
fs/orangefs/super.c

index 3b6982bf6bcf3ecd64f36fa118d4ec551f080acf..e75e173a918622b1c213c4e3862631fb29a2fa9a 100644 (file)
@@ -22,7 +22,7 @@ int op_cache_initialize(void)
        op_cache = kmem_cache_create("orangefs_op_cache",
                                     sizeof(struct orangefs_kernel_op_s),
                                     0,
-                                    ORANGEFS_CACHE_CREATE_FLAGS,
+                                    0,
                                     NULL);
 
        if (!op_cache) {
index 926d9c0a428a2d4977c6d68d644d9d449495df48..e2df7eeadc7aa2bb6d15ff6b3c363655bd333469 100644 (file)
@@ -93,16 +93,6 @@ enum orangefs_vfs_op_states {
        OP_VFS_STATE_GIVEN_UP = 16,
 };
 
-/*
- * orangefs kernel memory related flags
- */
-
-#if (defined CONFIG_DEBUG_SLAB)
-#define ORANGEFS_CACHE_CREATE_FLAGS SLAB_RED_ZONE
-#else
-#define ORANGEFS_CACHE_CREATE_FLAGS 0
-#endif
-
 extern const struct xattr_handler * const orangefs_xattr_handlers[];
 
 extern struct posix_acl *orangefs_get_acl(struct inode *inode, int type, bool rcu);
index 5254256a224d7a0a78f9673a42dc7df386370a4a..d5a71df63d4e5fac3a11658b01280febfdd3d0fe 100644 (file)
@@ -644,7 +644,7 @@ int orangefs_inode_cache_initialize(void)
                                        "orangefs_inode_cache",
                                        sizeof(struct orangefs_inode_s),
                                        0,
-                                       ORANGEFS_CACHE_CREATE_FLAGS,
+                                       0,
                                        offsetof(struct orangefs_inode_s,
                                                link_target),
                                        sizeof_field(struct orangefs_inode_s,