From: Milosz Tanski Date: Fri, 9 Aug 2013 16:59:39 +0000 (-0400) Subject: ceph: Remove bogus check in invalidatepage X-Git-Tag: MMI-PSA29.97-13-9~13583^2~33 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe2a801b50c0bb8039d627e5ae1fec249d10ff39;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Reviewed-by: Sage Weil --- diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index afb2fc241061..f1d6c60ab229 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -149,10 +149,6 @@ static void ceph_invalidatepage(struct page *page, unsigned long offset) struct ceph_inode_info *ci; struct ceph_snap_context *snapc = page_snap_context(page); - BUG_ON(!PageLocked(page)); - BUG_ON(!PagePrivate(page)); - BUG_ON(!page->mapping); - inode = page->mapping->host; /*