GFS2: BUG in gfs2_adjust_quota
authorAbhijith Das <adas@redhat.com>
Sun, 4 Jul 2010 05:33:24 +0000 (01:33 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 15 Jul 2010 08:07:16 +0000 (09:07 +0100)
commit8b4216018bdbfbb1b76150d202b15ee68c38e991
treec13bd1db68ca135b6362ee8e67e558fe87bfb93c
parentb1becbdee776b447f203aa8da9a40488d5a75e1d
GFS2: BUG in gfs2_adjust_quota

HighMem pages on i686 do not get mapped to the buffer_heads and this was
causing a NULL pointer dereference when we were trying to memset page buffers
to zero.
We now use zero_user() that kmaps the page and directly manipulates page data.
This patch also fixes a boundary condition that was incorrect.

Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/quota.c