orangefs: remove needless wrapper around GFP_KERNEL
authorMartin Brandenburg <martin@omnibond.com>
Fri, 18 Mar 2016 17:36:45 +0000 (13:36 -0400)
committerMike Marshall <hubcap@omnibond.com>
Wed, 23 Mar 2016 21:36:15 +0000 (17:36 -0400)
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-kernel.h
fs/orangefs/super.c

index d85776b15176d43ff9f361c72b98baad3bb337f0..5832168106dea2db9b663227377f8bbe6038ad34 100644 (file)
@@ -120,9 +120,6 @@ struct client_debug_mask {
 #define ORANGEFS_CACHE_CREATE_FLAGS 0
 #endif /* ((defined ORANGEFS_KERNEL_DEBUG) && (defined CONFIG_DEBUG_SLAB)) */
 
-#define ORANGEFS_GFP_FLAGS (GFP_KERNEL)
-#define ORANGEFS_BUFMAP_GFP_FLAGS (GFP_KERNEL)
-
 /* orangefs xattr and acl related defines */
 #define ORANGEFS_XATTR_INDEX_POSIX_ACL_ACCESS  1
 #define ORANGEFS_XATTR_INDEX_POSIX_ACL_DEFAULT 2
index eac24eb7fe802ee288d090ed04320c7af6d3feb1..1eeb0093b62cbb9dea09ce56cd38b5974be7eb8e 100644 (file)
@@ -360,8 +360,7 @@ static int orangefs_fill_sb(struct super_block *sb,
        struct orangefs_object_kref root_object;
 
        /* alloc and init our private orangefs sb info */
-       sb->s_fs_info =
-               kzalloc(sizeof(struct orangefs_sb_info_s), ORANGEFS_GFP_FLAGS);
+       sb->s_fs_info = kzalloc(sizeof(struct orangefs_sb_info_s), GFP_KERNEL);
        if (!ORANGEFS_SB(sb))
                return -ENOMEM;
        ORANGEFS_SB(sb)->sb = sb;