1ccd14b9c2
There is going to be a new version of quota format having 64-bit quota limits and a new quota format for OCFS2. They are both going to use the same tree structure as VFSv0 quota format. So split out tree handling into a separate file and make size of leaf blocks, amount of space usable in each block (needed for checksumming) and structures contained in them configurable so that the code can be shared. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
24 lines
477 B
C
24 lines
477 B
C
/*
|
|
* Definitions for vfsv0 quota format
|
|
*/
|
|
|
|
#ifndef _LINUX_DQBLK_V2_H
|
|
#define _LINUX_DQBLK_V2_H
|
|
|
|
#include <linux/dqblk_qtree.h>
|
|
|
|
/* Id number of quota format */
|
|
#define QFMT_VFS_V0 2
|
|
|
|
/* Numbers of blocks needed for updates */
|
|
#define V2_INIT_ALLOC QTREE_INIT_ALLOC
|
|
#define V2_INIT_REWRITE QTREE_INIT_REWRITE
|
|
#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 */
|