From: David Zafman Date: Thu, 4 Apr 2013 22:51:40 +0000 (-0700) Subject: filestore, osd: Fixes to comform to programming guidelines X-Git-Tag: v0.61~135^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ffb3ef4c25d9bc19460803a2924f8dbe034d50c;p=ceph.git filestore, osd: Fixes to comform to programming guidelines Signed-off-by: David Zafman --- diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 5170412183e9..aa6416453e0d 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -198,7 +198,8 @@ int FileStore::lfn_stat(coll_t cid, const hobject_t& oid, struct stat *buf) int FileStore::lfn_open(coll_t cid, const hobject_t& oid, int flags, mode_t mode, IndexedPath *path, - Index *index) { + Index *index) +{ Index index2; IndexedPath path2; if (!path) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index f21882966dab..095e20738978 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -39,7 +39,8 @@ #define dout_subsys ceph_subsys_osd #undef dout_prefix #define dout_prefix _prefix(_dout, this) -static ostream& _prefix(std::ostream *_dout, const PG *pg) { +static ostream& _prefix(std::ostream *_dout, const PG *pg) +{ return *_dout << pg->gen_prefix(); } @@ -3383,7 +3384,8 @@ void PG::scrub_unreserve_replicas() } } -void PG::_scan_snaps(ScrubMap &smap) { +void PG::_scan_snaps(ScrubMap &smap) +{ for (map::iterator i = smap.objects.begin(); i != smap.objects.end(); ++i) {