]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/MemoryModel: Bump int to long and drop mallinfo 13453/head
authorXiaoxi Chen <xiaoxchen@ebay.com>
Thu, 16 Feb 2017 07:16:00 +0000 (00:16 -0700)
committerXiaoxi Chen <xiaoxchen@ebay.com>
Wed, 22 Feb 2017 15:36:20 +0000 (08:36 -0700)
commit22ca3aa7172d05df99f41c3ac245e6a2f0e49b3d
tree1d9dfda61fb9baf0d82ae7f234721a91e3082ce2
parenteb491a13dc2faee315bf894fc2043aacfb94d624
common/MemoryModel: Bump int to long and drop mallinfo

mallinfo(3) doesnt have 64bit compatible version so when
malloc size > 4GB, either wrapped value or a negtive value
returned, which is really misleading.

Also bump up all int to long to prevent overflow oneday we
have > 2TB memory.

Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
CMakeLists.txt
src/common/MemoryModel.cc
src/common/MemoryModel.h
src/mds/MDCache.cc
src/mds/MDSRank.cc
src/mds/MDSRank.h