ceph: Avoid to propagate the invalid page point
authorMinfei Huang <mnfhuang@gmail.com>
Sat, 19 Dec 2015 02:54:59 +0000 (10:54 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 21 Jan 2016 18:36:07 +0000 (19:36 +0100)
commit458c4703aea04674f0b5f63b43cf5669a602a110
treebb59f6a36aa562f331296762625518ff5888d668
parentf9cac5ac08b630c87c56671ce99a80310cffb2c6
ceph: Avoid to propagate the invalid page point

The variant pagep will still get the invalid page point, although ceph
fails in function ceph_update_writeable_page.

To fix this issue, Assigne the page to pagep until there is no failure
in function ceph_update_writeable_page.

Signed-off-by: Minfei Huang <mnfhuang@gmail.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/addr.c