ceph: invalidate pages that beyond EOF in ceph_writepages_start()
authorYan, Zheng <zyan@redhat.com>
Sun, 4 Mar 2018 08:36:01 +0000 (16:36 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Apr 2018 08:12:47 +0000 (10:12 +0200)
commitaf9cc401ce7452f9d965ba4553d8ffe7f0ed42ee
treeb6597549d5f0981b091f66b5afa9e3fc0daf58c5
parentbc4b5ad3a6a1cfe11494380affc4bfc4521af499
ceph: invalidate pages that beyond EOF in ceph_writepages_start()

Dirty pages can be associated with different capsnap. Different capsnap
may have different EOF value. So invalidating dirty pages according to
the largest EOF value is wrong. Dirty pages beyond EOF, but associated
with other capsnap, do not get invalidated.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c
fs/ceph/inode.c