Skip to content

Commit 3635d00

Browse files
tehcasterhubcapsc
authored andcommitted
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 <[email protected]> Signed-off-by: Mike Marshall <[email protected]>
1 parent 841c351 commit 3635d00

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

fs/orangefs/orangefs-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int op_cache_initialize(void)
2222
op_cache = kmem_cache_create("orangefs_op_cache",
2323
sizeof(struct orangefs_kernel_op_s),
2424
0,
25-
ORANGEFS_CACHE_CREATE_FLAGS,
25+
0,
2626
NULL);
2727

2828
if (!op_cache) {

fs/orangefs/orangefs-kernel.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,6 @@ enum orangefs_vfs_op_states {
9393
OP_VFS_STATE_GIVEN_UP = 16,
9494
};
9595

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-
10696
extern const struct xattr_handler * const orangefs_xattr_handlers[];
10797

10898
extern struct posix_acl *orangefs_get_acl(struct inode *inode, int type, bool rcu);

fs/orangefs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ int orangefs_inode_cache_initialize(void)
644644
"orangefs_inode_cache",
645645
sizeof(struct orangefs_inode_s),
646646
0,
647-
ORANGEFS_CACHE_CREATE_FLAGS,
647+
0,
648648
offsetof(struct orangefs_inode_s,
649649
link_target),
650650
sizeof_field(struct orangefs_inode_s,

0 commit comments

Comments
 (0)