ceph: fix get_oldest_context()
authorGeng, Jichao <geng.jichao@h3c.com>
Thu, 5 Jan 2017 08:50:39 +0000 (16:50 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 12 Jan 2017 18:31:01 +0000 (19:31 +0100)
commit84fcc2d2bd6cbf621e49e1d0f7eaef2e3c666b40
tree6fb8f91a59da31402086e60e89554a2de820e702
parentcc8e8342930129aa2c9b629e1653e4681f0896ea
ceph: fix get_oldest_context()

For no snapshot case, we should use ci->truncate_{seq,size}.

Fixes: 5f743e456606 ("ceph: record truncate size/seq for snap data writeback")
Signed-off-by: Geng, Jichao <geng.jichao@h3c.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/addr.c