ceph: Avoid to propagate the invalid page point
[linux-2.6-block.git] / fs / ceph / addr.c
index ce3c773726c53a9c80adfad5e8ee235dd9cc5a11..6dfff0ba4d980253e635d859cf3a521a8e976712 100644 (file)
@@ -1149,7 +1149,6 @@ static int ceph_write_begin(struct file *file, struct address_space *mapping,
                page = grab_cache_page_write_begin(mapping, index, 0);
                if (!page)
                        return -ENOMEM;
-               *pagep = page;
 
                dout("write_begin file %p inode %p page %p %d~%d\n", file,
                     inode, page, (int)pos, (int)len);