From 5b7f9786a085830f0d4bbc0cec743b1ca489cd89 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 31 Aug 2011 09:54:41 -0700 Subject: [PATCH] filestore: reorder includes Signed-off-by: Sage Weil --- src/os/FileStore.cc | 58 +++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 31 deletions(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 3f4d1bb723014..9d3ebef3c758c 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -12,23 +12,6 @@ * */ -#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 #include @@ -37,12 +20,14 @@ #include #include #include -#include #include #include #include #include +#include +#include + #include "include/fiemap.h" #ifndef __CYGWIN__ @@ -54,20 +39,33 @@ #include #endif // DARWIN + #include -#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 @@ -77,14 +75,13 @@ #undef dout_prefix #define dout_prefix *_dout << "filestore(" << basedir << ") " -#include "include/buffer.h" -#include +#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 } -- 2.39.5