From: Dongsheng Yang Date: Wed, 30 Mar 2016 02:51:31 +0000 (-0400) Subject: os/filestore: fix a -Wunused-label warning in compiling. X-Git-Tag: v10.1.1~24^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F8366%2Fhead;p=ceph.git os/filestore: fix a -Wunused-label warning in compiling. os/filestore/FileStore.cc: In member function ‘int FileStore::_zero(const coll_t&, const ghobject_t&, uint64_t, size_t)’: os/filestore/FileStore.cc:3328:2: warning: label ‘out’ defined but not used [-Wunused-label] out: ^ Signed-off-by: Dongsheng Yang --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index 6677c86dc4b9..97b952ef67da 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -3325,7 +3325,13 @@ int FileStore::_zero(const coll_t& cid, const ghobject_t& oid, uint64_t offset, ret = _write(cid, oid, offset, len, bl); } +#ifdef CEPH_HAVE_FALLOCATE +# if !defined(DARWIN) && !defined(__FreeBSD__) +# ifdef FALLOC_FL_KEEP_SIZE out: +# endif +# endif +#endif dout(20) << "zero " << cid << "/" << oid << " " << offset << "~" << len << " = " << ret << dendl; return ret; }