ceph: check PG_Private flag before accessing page->private
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 28 May 2012 06:44:30 +0000 (14:44 +0800)
committerAlex Elder <elder@dreamhost.com>
Fri, 1 Jun 2012 13:06:29 +0000 (08:06 -0500)
commit28c0254ede13ab575d2df5c6585ed3d4817c3e6b
treeec4ea075748189c9be942fb41c70691d21b4d2df
parent6bd9adbdf9ca6a052b0b7455ac67b925eb38cfad
ceph: check PG_Private flag before accessing page->private

I got lots of NULL pointer dereference Oops when compiling kernel on ceph.
The bug is because the kernel page migration routine replaces some pages
in the page cache with new pages, these new pages' private can be non-zero.

Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
fs/ceph/addr.c
This page took 0.026104 seconds and 5 git commands to generate.