]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: Remove bogus check in invalidatepage
authorMilosz Tanski <milosz@adfin.com>
Fri, 9 Aug 2013 16:59:39 +0000 (12:59 -0400)
committerSage Weil <sage@inktank.com>
Sat, 10 Aug 2013 00:55:58 +0000 (17:55 -0700)
commitc39b15b1ffe2fd2062fe9c5891f674862eadee66
tree75298f98ac2e0610cf6f9917140a6eb4bb302485
parent40173fa9769bc4aaca15a1cb5fddb3eff2d0ef60
ceph: Remove bogus check in invalidatepage

The early bug checks are moot because the VMA layer ensures those things.

1. It will not call invalidatepage unless PagePrivate (or PagePrivate2) are set
2. It will not call invalidatepage without taking a PageLock first.
3. Guantrees that the inode page is mapped.

Signed-off-by: Milosz Tanski <milosz@adfin.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/addr.c