]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: reorder includes
authorSage Weil <sage@newdream.net>
Wed, 31 Aug 2011 16:54:41 +0000 (09:54 -0700)
committerSage Weil <sage@newdream.net>
Wed, 31 Aug 2011 17:00:51 +0000 (10:00 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/os/FileStore.cc

index 3f4d1bb723014bee7670fae5aeab106db08a2549..9d3ebef3c758c9391e9c8accc6292ff4e16096c1 100644 (file)
  * 
  */
 
-#include "FileStore.h"
-#include "common/BackTrace.h"
-#include "include/types.h"
-
-#include "FileJournal.h"
-
-#include "osd/osd_types.h"
-
-#include "include/color.h"
-
-#include "common/Timer.h"
-#include "common/debug.h"
-#include "common/errno.h"
-#include "common/run_cmd.h"
-#include "common/safe_io.h"
-#include "common/perf_counters.h"
-#include "common/sync_filesystem.h"
 
 #include <inttypes.h>
 #include <unistd.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <sys/file.h>
-#include <iostream>
 #include <errno.h>
 #include <dirent.h>
 #include <sys/ioctl.h>
 #include <linux/fs.h>
 
+#include <iostream>
+#include <map>
+
 #include "include/fiemap.h"
 
 #ifndef __CYGWIN__
 #include <sys/mount.h>
 #endif // DARWIN
 
+
 #include <sstream>
 
-#define ATTR_MAX_NAME_LEN  128
-#define ATTR_MAX_BLOCK_LEN 2048
+#include "FileStore.h"
+#include "common/BackTrace.h"
+#include "include/types.h"
+#include "FileJournal.h"
 
-#define COMMIT_SNAP_ITEM "snap_%lld"
-#define CLUSTER_SNAP_ITEM "clustersnap_%s"
+#include "osd/osd_types.h"
+#include "include/color.h"
+#include "include/buffer.h"
+
+#include "common/Timer.h"
+#include "common/debug.h"
+#include "common/errno.h"
+#include "common/run_cmd.h"
+#include "common/safe_io.h"
+#include "common/perf_counters.h"
+#include "common/sync_filesystem.h"
+#include "HashIndex.h"
+
+#include "common/ceph_crypto.h"
+using ceph::crypto::SHA1;
 
 #ifndef __CYGWIN__
 # ifndef DARWIN
 #  include "btrfs_ioctl.h"
-
-
-
 # endif
 #endif
 
 #undef dout_prefix
 #define dout_prefix *_dout << "filestore(" << basedir << ") "
 
-#include "include/buffer.h"
 
-#include <map>
+#define ATTR_MAX_NAME_LEN  128
+#define ATTR_MAX_BLOCK_LEN 2048
 
-#include "common/ceph_crypto.h"
-#include "HashIndex.h"
+#define COMMIT_SNAP_ITEM "snap_%lld"
+#define CLUSTER_SNAP_ITEM "clustersnap_%s"
 
-using ceph::crypto::SHA1;
 
 /*
  * long file names will have the following format:
@@ -2411,7 +2408,6 @@ unsigned FileStore::_do_transaction(Transaction& t)
       assert(0 == "EIO handling not implemented");
     }
   }
-  
   return 0;  // FIXME count errors
 }