diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ceph/addr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 25360d517d1b..23bb0ceabe31 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c | |||
@@ -144,7 +144,7 @@ static int ceph_set_page_dirty(struct page *page) | |||
144 | */ | 144 | */ |
145 | static void ceph_invalidatepage(struct page *page, unsigned long offset) | 145 | static void ceph_invalidatepage(struct page *page, unsigned long offset) |
146 | { | 146 | { |
147 | struct inode *inode = page->mapping->host; | 147 | struct inode *inode; |
148 | struct ceph_inode_info *ci; | 148 | struct ceph_inode_info *ci; |
149 | struct ceph_snap_context *snapc = (void *)page->private; | 149 | struct ceph_snap_context *snapc = (void *)page->private; |
150 | 150 | ||
@@ -153,6 +153,8 @@ static void ceph_invalidatepage(struct page *page, unsigned long offset) | |||
153 | BUG_ON(!PagePrivate(page)); | 153 | BUG_ON(!PagePrivate(page)); |
154 | BUG_ON(!page->mapping); | 154 | BUG_ON(!page->mapping); |
155 | 155 | ||
156 | inode = page->mapping->host; | ||
157 | |||
156 | /* | 158 | /* |
157 | * We can get non-dirty pages here due to races between | 159 | * We can get non-dirty pages here due to races between |
158 | * set_page_dirty and truncate_complete_page; just spit out a | 160 | * set_page_dirty and truncate_complete_page; just spit out a |