diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-03 10:33:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-03 10:33:50 -0500 |
commit | 4850f524b2c4c8a4e9f8ef4dd9c7c4afde2f2b2c (patch) | |
tree | deba82fa7cac39dac62d22a36ecc714d05a0f425 /include | |
parent | 3ff1562ea48cddaa5ac1adcb8892227389a4c96c (diff) | |
parent | 4818972efb105730f007e5efc05e203a065fc318 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-nmw
* git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-nmw:
GFS2: print glock numbers in hex
GFS2: ordered writes are backwards
GFS2: Remove old, unused linked list code from quota
GFS2: Remove loopy umount code
GFS2: Metadata address space clean up
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/gfs2_ondisk.h | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h index 81f90a59cda6..4f4462974c14 100644 --- a/include/linux/gfs2_ondisk.h +++ b/include/linux/gfs2_ondisk.h | |||
@@ -180,33 +180,6 @@ struct gfs2_rgrp { | |||
180 | }; | 180 | }; |
181 | 181 | ||
182 | /* | 182 | /* |
183 | * quota linked list: user quotas and group quotas form two separate | ||
184 | * singly linked lists. ll_next stores uids or gids of next quotas in the | ||
185 | * linked list. | ||
186 | |||
187 | Given the uid/gid, how to calculate the quota file offsets for the corresponding | ||
188 | gfs2_quota structures on disk: | ||
189 | |||
190 | for user quotas, given uid, | ||
191 | offset = uid * sizeof(struct gfs2_quota); | ||
192 | |||
193 | for group quotas, given gid, | ||
194 | offset = (gid * sizeof(struct gfs2_quota)) + sizeof(struct gfs2_quota); | ||
195 | |||
196 | |||
197 | uid:0 gid:0 uid:12 gid:12 uid:17 gid:17 uid:5142 gid:5142 | ||
198 | +-------+-------+ +-------+-------+ +-------+- - - -+ +- - - -+-------+ | ||
199 | | valid | valid | :: | valid | valid | :: | valid | inval | :: | inval | valid | | ||
200 | +-------+-------+ +-------+-------+ +-------+- - - -+ +- - - -+-------+ | ||
201 | next:12 next:12 next:17 next:5142 next:NULL next:NULL | ||
202 | | | | | |<-- user quota list | | ||
203 | \______|___________/ \______|___________/ group quota list -->| | ||
204 | | | | | ||
205 | \__________________/ \_______________________________________/ | ||
206 | |||
207 | */ | ||
208 | |||
209 | /* | ||
210 | * quota structure | 183 | * quota structure |
211 | */ | 184 | */ |
212 | 185 | ||
@@ -214,8 +187,7 @@ struct gfs2_quota { | |||
214 | __be64 qu_limit; | 187 | __be64 qu_limit; |
215 | __be64 qu_warn; | 188 | __be64 qu_warn; |
216 | __be64 qu_value; | 189 | __be64 qu_value; |
217 | __be32 qu_ll_next; /* location of next quota in list */ | 190 | __u8 qu_reserved[64]; |
218 | __u8 qu_reserved[60]; | ||
219 | }; | 191 | }; |
220 | 192 | ||
221 | /* | 193 | /* |