mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Jan Kara](/assets/img/avatar_default.png)
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>
23 lines
477 B
C
23 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 */
|