orangefs: Remove useless inline qualifier from bufmap functions.
authorMartin Brandenburg <martin@omnibond.com>
Tue, 15 Dec 2015 19:48:17 +0000 (14:48 -0500)
committerMike Marshall <hubcap@omnibond.com>
Thu, 17 Dec 2015 19:34:53 +0000 (14:34 -0500)
All callers were outside of the file these functions were declared in,
so nothing was ever inlined anyway.

Further this happens before I/O and any speedup by not having to do a
call will be dwarfed by the time it takes to talk to the server.

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
fs/orangefs/orangefs-bufmap.c
fs/orangefs/orangefs-bufmap.h

index bf8470060c743d386e1ce952ddeab88d6ed4f259..cf3ffb57334bead562cc378e269a596f7d23b7b7 100644 (file)
@@ -82,7 +82,7 @@ static void orangefs_bufmap_unref(struct orangefs_bufmap *bufmap)
        }
 }
 
-inline int orangefs_bufmap_size_query(void)
+int orangefs_bufmap_size_query(void)
 {
        struct orangefs_bufmap *bufmap = orangefs_bufmap_ref();
        int size = bufmap ? bufmap->desc_size : 0;
@@ -91,7 +91,7 @@ inline int orangefs_bufmap_size_query(void)
        return size;
 }
 
-inline int orangefs_bufmap_shift_query(void)
+int orangefs_bufmap_shift_query(void)
 {
        struct orangefs_bufmap *bufmap = orangefs_bufmap_ref();
        int shift = bufmap ? bufmap->desc_shift : 0;
index f652b464b3403d02e4d5ec0c0178e29722ffbc91..112ec33a1b862d0b419599b074d8ff3e97cc0c0a 100644 (file)
@@ -9,10 +9,6 @@
 
 struct orangefs_bufmap;
 
-/*
- * orangefs_bufmap_size_query is now an inline function because buffer
- * sizes are not hardcoded
- */
 int orangefs_bufmap_size_query(void);
 
 int orangefs_bufmap_shift_query(void);
This page took 0.045707 seconds and 5 git commands to generate.