]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: keep leaf frag when updating fragtree
authorYan, Zheng <zyan@redhat.com>
Wed, 4 May 2016 03:05:10 +0000 (11:05 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 May 2016 23:15:37 +0000 (01:15 +0200)
commitc2aee531aa914176cbbd98f30bb8ede399a654dc
tree432bd5da4924ea61b1fa0bcd862361e2f6343c29
parent247ceb0816669aa3c9f36158cf4180effc8116c4
ceph: keep leaf frag when updating fragtree

Nodes in i_fragtree are sorted according to ceph_compare_frag().
It means frag node in i_fragtree always follow its direct parent
node. To check if a leaf node is valid, we just need to check if
it's child of previous split node.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/inode.c