diff options
author | Yan, Zheng <zyan@redhat.com> | 2017-08-30 05:36:06 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-09-06 19:56:55 +0200 |
commit | 1f934b00e907527cddb83984d0783cc4a029952a (patch) | |
tree | 3e1f89e89c990448a8dd84d7d00e743d84902679 /net | |
parent | ceph: remove stale check in ceph_invalidatepage() (diff) | |
download | linux-1f934b00e907527cddb83984d0783cc4a029952a.tar.xz linux-1f934b00e907527cddb83984d0783cc4a029952a.zip |
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 'net')
0 files changed, 0 insertions, 0 deletions