]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer: cleanups
authorSage Weil <sage@newdream.net>
Mon, 20 Apr 2009 14:00:12 +0000 (07:00 -0700)
committerSage Weil <sage@newdream.net>
Mon, 20 Apr 2009 14:00:12 +0000 (07:00 -0700)
src/Makefile.am
src/common/buffer.cc
src/config.cc
src/include/buffer.h

index 37d8019e151a0ab74863fa45e51db77e4b3f5b3a..245b9a6d473bebff848173451b60245d6a588fca 100644 (file)
@@ -200,7 +200,6 @@ libcommon_files = \
        auth/ExportControl.cc \
        common/LogClient.cc \
        msg/Message.cc \
-       common/buffer.cc \
        common/Logger.cc \
        common/Clock.cc \
        common/Timer.cc \
@@ -217,6 +216,7 @@ libcommon_files = \
        mds/MDSMap.cc \
        common/tls.cc \
        common/common_init.cc \
+       common/buffer.cc \
        config.cc \
        common/lockdep.cc
 
index cbcab550507219b4ff922f3ff9e3d679b32d0dac..c985c75a4949eaeb46d34c601bfef8d80ab04bad 100644 (file)
@@ -19,6 +19,7 @@
 #include <errno.h>
 #include <fstream>
 
+atomic_t buffer_total_alloc;
 
 int buffer::list::read_file(const char *fn)
 {
index b0aaf0df9395f240007c65febacab756805c1855..bf96d688eb0ca36d5456ff36e0723b1a4681ac4b 100644 (file)
@@ -30,9 +30,7 @@
 #include "include/tstring.h"
 stringtable g_stab;
 
-// hack hack hack ugly FIXME
 #include "include/atomic.h"
-atomic_t buffer_total_alloc;
 
 #include "osd/osd_types.h"
 
index c6818af5d767592e6b77861fb3a2ff17eff2b1e0..e573755d6df1eb69f698e85f97e9acf92cd1a266 100644 (file)
@@ -54,11 +54,7 @@ using std::string;
 #include "crc32c.h"
 #include "assert.h"
 
-// <hack>
-//  these are in config.o
 extern atomic_t buffer_total_alloc;
-// </hack>
-
 
 class buffer {
 private: