Displaying 1 result from an estimated 1 matches for "000005a0".
Did you mean:
000005a8
2010 Aug 13
1
[PATCH] btrfs: avoid duplications by moving the static int array from header to c file
...the obvious problem is every c file using that function would have a
local copy of that int array, multiple c files calling would result
multiple copies of that array:
$ nm fs/btrfs/btrfs.ko | grep btrfs_csum_sizes
0000010c r btrfs_csum_sizes
00000114 r btrfs_csum_sizes
000001c0 r btrfs_csum_sizes
000005a0 r btrfs_csum_sizes
the original commit has 4 c files called this static inline function,
till now there are still those 4 c files calling it, so there are 4 copies
of btrfs_csum_sizes; but future code may call it in more c files,
resulting in more copies;
fs/btrfs/ctree.h | 19 ++++++++++++...