]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: sort dentries in CDir in hash order
authorYan, Zheng <zyan@redhat.com>
Sat, 23 Apr 2016 08:03:48 +0000 (16:03 +0800)
committerGreg Farnum <gfarnum@redhat.com>
Sun, 12 Jun 2016 21:10:04 +0000 (14:10 -0700)
commit9ce73cdeb6056060b299cf92e4c858d1ab2aef2c
tree613c08bae143fc691310365d8db12228e3b8cbc8
parent288160b7e4bec94238d3b24622b4d16808a273e1
mds: sort dentries in CDir in hash order

This gives us stable ordering of dentries. (Previously ordering of
dentries changes after directory gets fragmented)

Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit f483224a0bc70b9eb5f62cd6cbb8b97df5b65953)

Signed-off-by: Greg Farnum <gfarnum@redhat.com
src/mds/CDentry.h
src/mds/CDir.cc
src/mds/CDir.h
src/mds/MDCache.cc
src/mds/Server.cc
src/mds/mdstypes.h