Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/orangefs: remove ORANGEFS_CACHE_CREATE_FLAGS

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>

authored by

Vlastimil Babka and committed by
Mike Marshall
3635d000 841c3516

+2 -12
+1 -1
fs/orangefs/orangefs-cache.c
··· 22 22 op_cache = kmem_cache_create("orangefs_op_cache", 23 23 sizeof(struct orangefs_kernel_op_s), 24 24 0, 25 - ORANGEFS_CACHE_CREATE_FLAGS, 25 + 0, 26 26 NULL); 27 27 28 28 if (!op_cache) {
-10
fs/orangefs/orangefs-kernel.h
··· 93 93 OP_VFS_STATE_GIVEN_UP = 16, 94 94 }; 95 95 96 - /* 97 - * orangefs kernel memory related flags 98 - */ 99 - 100 - #if (defined CONFIG_DEBUG_SLAB) 101 - #define ORANGEFS_CACHE_CREATE_FLAGS SLAB_RED_ZONE 102 - #else 103 - #define ORANGEFS_CACHE_CREATE_FLAGS 0 104 - #endif 105 - 106 96 extern const struct xattr_handler * const orangefs_xattr_handlers[]; 107 97 108 98 extern struct posix_acl *orangefs_get_acl(struct inode *inode, int type, bool rcu);
+1 -1
fs/orangefs/super.c
··· 644 644 "orangefs_inode_cache", 645 645 sizeof(struct orangefs_inode_s), 646 646 0, 647 - ORANGEFS_CACHE_CREATE_FLAGS, 647 + 0, 648 648 offsetof(struct orangefs_inode_s, 649 649 link_target), 650 650 sizeof_field(struct orangefs_inode_s,