diff options
author | Abhijith Das <adas@redhat.com> | 2007-05-31 18:52:02 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2007-07-09 03:23:01 -0400 |
commit | 1990e917651d58a3c5155d0491431c09e29e385b (patch) | |
tree | 6e53188136db71ed9abe8982b457ab2d66f1792a /fs/gfs2/ondisk.c | |
parent | 0b7cac0fb0e541a7f54d0ba55b31d829ce3dd899 (diff) |
[GFS2] Quotas non-functional - fix another bug
This patch fixes a bug where gfs2 was writing update quota usage
information to the wrong location in the quota file.
Signed-off-by: Abhijith Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ondisk.c')
-rw-r--r-- | fs/gfs2/ondisk.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c index cd4cf055c37d..a5b05ea3d4c7 100644 --- a/fs/gfs2/ondisk.c +++ b/fs/gfs2/ondisk.c | |||
@@ -121,6 +121,16 @@ void gfs2_quota_in(struct gfs2_quota_host *qu, const void *buf) | |||
121 | qu->qu_value = be64_to_cpu(str->qu_value); | 121 | qu->qu_value = be64_to_cpu(str->qu_value); |
122 | } | 122 | } |
123 | 123 | ||
124 | void gfs2_quota_out(const struct gfs2_quota_host *qu, void *buf) | ||
125 | { | ||
126 | struct gfs2_quota *str = buf; | ||
127 | |||
128 | str->qu_limit = cpu_to_be64(qu->qu_limit); | ||
129 | str->qu_warn = cpu_to_be64(qu->qu_warn); | ||
130 | str->qu_value = cpu_to_be64(qu->qu_value); | ||
131 | memset(&str->qu_reserved, 0, sizeof(str->qu_reserved)); | ||
132 | } | ||
133 | |||
124 | void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf) | 134 | void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf) |
125 | { | 135 | { |
126 | const struct gfs2_dinode_host *di = &ip->i_di; | 136 | const struct gfs2_dinode_host *di = &ip->i_di; |