From: x11562 Date: Wed, 3 Feb 2016 03:18:10 +0000 (+0800) Subject: mds: function parameter 'df' should be passed by reference X-Git-Tag: v10.1.0~375^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8167a22f3d28c2a31a7187cd726f5a450effa012;p=ceph.git mds: function parameter 'df' should be passed by reference Signed-off-by: Na Xie --- diff --git a/src/mds/mdstypes.h b/src/mds/mdstypes.h index 4e1b926d5558..ab6e488274f2 100644 --- a/src/mds/mdstypes.h +++ b/src/mds/mdstypes.h @@ -941,7 +941,7 @@ struct dirfrag_t { WRITE_CLASS_ENCODER(dirfrag_t) -inline std::ostream& operator<<(std::ostream& out, const dirfrag_t df) { +inline std::ostream& operator<<(std::ostream& out, const dirfrag_t &df) { out << df.ino; if (!df.frag.is_root()) out << "." << df.frag; return out;