diff options
author | Abhijith Das <adas@redhat.com> | 2010-05-07 17:50:18 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2010-05-10 13:07:11 +0100 |
commit | 7e619bc3e6252dc746f64ac3b486e784822e9533 (patch) | |
tree | 0e9432a16983352117366fb4ecd8de41a6dfcfc3 /fs/direct-io.c | |
parent | 913a71d250803130eac523e7a2b6439e31a0bc83 (diff) |
GFS2: Fix writing to non-page aligned gfs2_quota structures
This is the upstream fix for this bug. This patch differs
from the RHEL5 fix (Red Hat bz #555754) which simply writes to the 8-byte
value field of the quota. In upstream quota code, we're
required to write the entire quota (88 bytes) which can be split
across a page boundary. We check for such quotas, and read/write
the two parts from/to the corresponding pages holding these parts.
With this patch, I don't see the bug anymore using the reproducer
in Red Hat bz 555754. I successfully ran a couple of simple tests/mounts/
umounts and it doesn't seem like this patch breaks anything else.
Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/direct-io.c')
0 files changed, 0 insertions, 0 deletions