Displaying 1 result from an estimated 1 matches for "renquan".
Did you mean:
renan
2010 Aug 13
1
[PATCH] btrfs: avoid duplications by moving the static int array from header to c file
...ng memory; move it to a c file can avoid
duplications; and since the inline function referred ARRAY_SIZE of that
array, must know the array size at compile time, so cannot be inlined
anyway.
The cost is originally inlined function calling changed to external function
calling.
Signed-off-by: Cheng Renquan <crquan@gmail.com>
---
fs/btrfs/ctree.c | 9 +++++++++
fs/btrfs/ctree.h | 9 +--------
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index c3df14c..3a89207 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -24,6 +24,15 @@
#in...