aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorMilosz Tanski <milosz@adfin.com>2013-08-09 12:59:39 -0400
committerSage Weil <sage@inktank.com>2013-08-09 20:55:58 -0400
commitfe2a801b50c0bb8039d627e5ae1fec249d10ff39 (patch)
tree75298f98ac2e0610cf6f9917140a6eb4bb302485 /fs/ceph
parent2f75e9e17911524f294aa7b3bf0d7233f99a3218 (diff)
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>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/addr.c4
1 files changed, 0 insertions, 4 deletions
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)
149 struct ceph_inode_info *ci; 149 struct ceph_inode_info *ci;
150 struct ceph_snap_context *snapc = page_snap_context(page); 150 struct ceph_snap_context *snapc = page_snap_context(page);
151 151
152 BUG_ON(!PageLocked(page));
153 BUG_ON(!PagePrivate(page));
154 BUG_ON(!page->mapping);
155
156 inode = page->mapping->host; 152 inode = page->mapping->host;
157 153
158 /* 154 /*