ceph: properly release page upon error
authorTaesoo Kim <tsgatesv@gmail.com>
Fri, 20 Mar 2015 21:36:56 +0000 (17:36 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Apr 2015 15:55:34 +0000 (18:55 +0300)
commitc1d00b2d9c4fc821e33c5cdfbdbc32677cb0e2e0
tree619b91acc56d2f807fdd979db42b226321e19ae8
parent1fe480235ad7236e8ea6c167af5a5d1ac24f8a88
ceph: properly release page upon error

When ceph_update_writeable_page fails (including -EAGAIN), it
unlocks (w/ unlock_page) the page but does not 'release'
(w/ page_cache_release) properly.

Upon error, properly set *pagep to NULL, indicating an error.

Signed-off-by: Taesoo Kim <tsgatesv@gmail.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/addr.c