quota: Convert union in mem_dqinfo to a pointer
Coming quota support for OCFS2 is going to need quite a bit of additional per-sb quota information. Moreover having fs.h include all the types needed for this structure would be a pain in the a**. So remove the union from mem_dqinfo and add a private pointer for filesystem's use. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
This commit is contained in:
parent
1ccd14b9c2
commit
e3d4d56b97
4 changed files with 35 additions and 31 deletions
|
@ -17,8 +17,4 @@
|
|||
#define V1_DEL_ALLOC 0
|
||||
#define V1_DEL_REWRITE 2
|
||||
|
||||
/* Special information about quotafile */
|
||||
struct v1_mem_dqinfo {
|
||||
};
|
||||
|
||||
#endif /* _LINUX_DQBLK_V1_H */
|
||||
|
|
|
@ -16,8 +16,4 @@
|
|||
#define V2_DEL_ALLOC QTREE_DEL_ALLOC
|
||||
#define V2_DEL_REWRITE QTREE_DEL_REWRITE
|
||||
|
||||
struct v2_mem_dqinfo {
|
||||
struct qtree_mem_dqinfo i;
|
||||
};
|
||||
|
||||
#endif /* _LINUX_DQBLK_V2_H */
|
||||
|
|
|
@ -208,10 +208,7 @@ struct mem_dqinfo {
|
|||
unsigned int dqi_igrace;
|
||||
qsize_t dqi_maxblimit;
|
||||
qsize_t dqi_maxilimit;
|
||||
union {
|
||||
struct v1_mem_dqinfo v1_i;
|
||||
struct v2_mem_dqinfo v2_i;
|
||||
} u;
|
||||
void *dqi_priv;
|
||||
};
|
||||
|
||||
struct super_block;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue