diff options
author | Dave Chinner <dchinner@redhat.com> | 2010-04-13 01:06:52 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-05-19 10:58:11 -0400 |
commit | 3a8406f6d6916e8211936edb9e1193123df2daab (patch) | |
tree | 53f490a433ef3bd2f430ef19cdfbbe5dc514e89d /fs/xfs/quota/xfs_dquot.h | |
parent | e6a81f13aa9aa20ef03174210aed24791865b05e (diff) |
xfs: convert the dquot free list to use list heads
Convert the dquot free list on the filesystem to use listhead
infrastructure rather than the roll-your-own in the quota code.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/quota/xfs_dquot.h')
-rw-r--r-- | fs/xfs/quota/xfs_dquot.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/quota/xfs_dquot.h b/fs/xfs/quota/xfs_dquot.h index 169b3c24af79..56fb21d81bc4 100644 --- a/fs/xfs/quota/xfs_dquot.h +++ b/fs/xfs/quota/xfs_dquot.h | |||
@@ -50,8 +50,6 @@ struct xfs_trans; | |||
50 | * iterations because of locking considerations. | 50 | * iterations because of locking considerations. |
51 | */ | 51 | */ |
52 | typedef struct xfs_dqmarker { | 52 | typedef struct xfs_dqmarker { |
53 | struct xfs_dquot*dqm_flnext; /* link to freelist: must be first */ | ||
54 | struct xfs_dquot*dqm_flprev; | ||
55 | uint dqm_flags; /* various flags (XFS_DQ_*) */ | 53 | uint dqm_flags; /* various flags (XFS_DQ_*) */ |
56 | } xfs_dqmarker_t; | 54 | } xfs_dqmarker_t; |
57 | 55 | ||
@@ -60,8 +58,9 @@ typedef struct xfs_dqmarker { | |||
60 | */ | 58 | */ |
61 | typedef struct xfs_dquot { | 59 | typedef struct xfs_dquot { |
62 | xfs_dqmarker_t q_lists; /* list ptrs, q_flags (marker) */ | 60 | xfs_dqmarker_t q_lists; /* list ptrs, q_flags (marker) */ |
61 | struct list_head q_freelist; /* global free list of dquots */ | ||
63 | struct list_head q_mplist; /* mount's list of dquots */ | 62 | struct list_head q_mplist; /* mount's list of dquots */ |
64 | struct list_head q_hashlist; /* mount's list of dquots */ | 63 | struct list_head q_hashlist; /* gloabl hash list of dquots */ |
65 | xfs_dqhash_t *q_hash; /* the hashchain header */ | 64 | xfs_dqhash_t *q_hash; /* the hashchain header */ |
66 | struct xfs_mount*q_mount; /* filesystem this relates to */ | 65 | struct xfs_mount*q_mount; /* filesystem this relates to */ |
67 | struct xfs_trans*q_transp; /* trans this belongs to currently */ | 66 | struct xfs_trans*q_transp; /* trans this belongs to currently */ |