diff options
author | Yan, Zheng <zyan@redhat.com> | 2017-08-30 11:36:06 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-09-06 19:56:55 +0200 |
commit | 1f934b00e907527cddb83984d0783cc4a029952a (patch) | |
tree | 3e1f89e89c990448a8dd84d7d00e743d84902679 /Documentation | |
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>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions