Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

GFS2: Remove old, unused linked list code from quota

This is the kernel portion of the patch-set for upstream gfs2,
to remove the quota-linked-list stuff and replace it with
fiemap-based traversal of the quota file.

The corresponding userland fixes have been pushed to
STABLE3 and master branches of cluster.git and gfs2-utils.git
respectively (Refer Red Hat bug #536902).

Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>

authored by

Abhijith Das and committed by
Steven Whitehouse
1ccaba30 c1184f8a

+1 -29
+1 -29
include/linux/gfs2_ondisk.h
··· 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 183 * quota structure 211 184 */ 212 185 ··· 187 214 __be64 qu_limit; 188 215 __be64 qu_warn; 189 216 __be64 qu_value; 190 - __be32 qu_ll_next; /* location of next quota in list */ 191 - __u8 qu_reserved[60]; 217 + __u8 qu_reserved[64]; 192 218 }; 193 219 194 220 /*