commit | 1f934b00e907527cddb83984d0783cc4a029952a | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zyan@redhat.com> | Wed Aug 30 11:36:06 2017 +0800 |
committer | Ilya Dryomov <idryomov@gmail.com> | Wed Sep 06 19:56:55 2017 +0200 |
tree | 3e1f89e89c990448a8dd84d7d00e743d84902679 | |
parent | b072d774664b690768bdf7e068ee95a161e5f107 [diff] |
ceph: properly get capsnap's size in get_oldest_context() capsnap's size is set by __ceph_finish_cap_snap(). If capsnap is under writing, its size is zero. In this case, get_oldest_context() should read i_size. Besides, ceph_writepages_start() should re-check capsnap's size after dirty pages get locked. Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>