]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: dynamiclly allocate data structures for file locks
authorYan, Zheng <zyan@redhat.com>
Mon, 9 Feb 2015 04:56:44 +0000 (12:56 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 25 Feb 2015 12:51:19 +0000 (20:51 +0800)
commit151494f407093706f971dbff7d07d1562110bf80
treee4f47b3083155b83e2c8087e63173c59e5a682d0
parent00047fbefd87209b2957ba66f7a73fd38c87ac11
mds: dynamiclly allocate data structures for file locks

Size of ceph_lock_state_t is about 200 bytes, CInode contains two
ceph_lock_state_t. Dynamiclly allocating them can save about 400
bytes.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/CInode.cc
src/mds/CInode.h
src/mds/Locker.cc
src/mds/MDS.h
src/mds/Server.cc
src/mds/flock.h