orangefs: Remove useless inline qualifier from bufmap functions.
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>
This commit is contained in:
committed by
Mike Marshall
parent
bf89f58432
commit
765a75b34a
@@ -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();
|
struct orangefs_bufmap *bufmap = orangefs_bufmap_ref();
|
||||||
int size = bufmap ? bufmap->desc_size : 0;
|
int size = bufmap ? bufmap->desc_size : 0;
|
||||||
@@ -91,7 +91,7 @@ inline int orangefs_bufmap_size_query(void)
|
|||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int orangefs_bufmap_shift_query(void)
|
int orangefs_bufmap_shift_query(void)
|
||||||
{
|
{
|
||||||
struct orangefs_bufmap *bufmap = orangefs_bufmap_ref();
|
struct orangefs_bufmap *bufmap = orangefs_bufmap_ref();
|
||||||
int shift = bufmap ? bufmap->desc_shift : 0;
|
int shift = bufmap ? bufmap->desc_shift : 0;
|
||||||
|
|||||||
@@ -9,10 +9,6 @@
|
|||||||
|
|
||||||
struct orangefs_bufmap;
|
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_size_query(void);
|
||||||
|
|
||||||
int orangefs_bufmap_shift_query(void);
|
int orangefs_bufmap_shift_query(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user