diff options
author | Abhijith Das <adas@redhat.com> | 2007-05-16 18:02:19 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2007-07-09 03:22:26 -0400 |
commit | 2a87ab080607d009b8b2a8706f4e27d70402ca9c (patch) | |
tree | 5da4f0b18db776e83797307c9d479e8b6585a776 /include/linux/gfs2_ondisk.h | |
parent | dbb7cae2a36170cd17ffbe286ec0c91a998740ff (diff) |
[GFS2] Quotas non-functional - fix bug
This patch fixes an error in the quota code where a 'struct
gfs2_quota_lvb*' was being passed to gfs2_adjust_quota() instead of a
'struct gfs2_quota_data*'. Also moved 'struct gfs2_quota_lvb' from
fs/gfs2/incore.h to include/linux/gfs2_ondisk.h as per Steve's suggestion.
Signed-off-by: Abhijith Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'include/linux/gfs2_ondisk.h')
-rw-r--r-- | include/linux/gfs2_ondisk.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h index a82ec8c62eff..028f9810ba07 100644 --- a/include/linux/gfs2_ondisk.h +++ b/include/linux/gfs2_ondisk.h | |||
@@ -500,6 +500,14 @@ struct gfs2_quota_change_host { | |||
500 | __u32 qc_id; | 500 | __u32 qc_id; |
501 | }; | 501 | }; |
502 | 502 | ||
503 | struct gfs2_quota_lvb { | ||
504 | __be32 qb_magic; | ||
505 | u32 __pad; | ||
506 | __be64 qb_limit; /* Hard limit of # blocks to alloc */ | ||
507 | __be64 qb_warn; /* Warn user when alloc is above this # */ | ||
508 | __be64 qb_value; /* Current # blocks allocated */ | ||
509 | }; | ||
510 | |||
503 | #ifdef __KERNEL__ | 511 | #ifdef __KERNEL__ |
504 | /* Translation functions */ | 512 | /* Translation functions */ |
505 | struct gfs2_inode; | 513 | struct gfs2_inode; |