summaryrefslogtreecommitdiffstats
path: root/include/linux/dqblk_v2.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2008-09-22 05:54:49 +0200
committerMark Fasheh <mfasheh@suse.com>2009-01-05 08:40:21 -0800
commit1ccd14b9c271c1ac6eec5c5ec5def433100e7248 (patch)
tree959756aa5b68c568a18697464df3f0acdd0387cf /include/linux/dqblk_v2.h
parentcf770c137122b78470a67ebd5498947869a09197 (diff)
downloadblackbird-op-linux-1ccd14b9c271c1ac6eec5c5ec5def433100e7248.tar.gz
blackbird-op-linux-1ccd14b9c271c1ac6eec5c5ec5def433100e7248.zip
quota: Split off quota tree handling into a separate file
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>
Diffstat (limited to 'include/linux/dqblk_v2.h')
-rw-r--r--include/linux/dqblk_v2.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/include/linux/dqblk_v2.h b/include/linux/dqblk_v2.h
index 4f853322cb7f..e5e22a787d58 100644
--- a/include/linux/dqblk_v2.h
+++ b/include/linux/dqblk_v2.h
@@ -1,26 +1,23 @@
/*
- * Definitions of structures for vfsv0 quota format
+ * Definitions for vfsv0 quota format
*/
#ifndef _LINUX_DQBLK_V2_H
#define _LINUX_DQBLK_V2_H
-#include <linux/types.h>
+#include <linux/dqblk_qtree.h>
-/* id numbers of quota format */
+/* Id number of quota format */
#define QFMT_VFS_V0 2
/* Numbers of blocks needed for updates */
-#define V2_INIT_ALLOC 4
-#define V2_INIT_REWRITE 2
-#define V2_DEL_ALLOC 0
-#define V2_DEL_REWRITE 6
+#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
-/* Inmemory copy of version specific information */
struct v2_mem_dqinfo {
- unsigned int dqi_blocks;
- unsigned int dqi_free_blk;
- unsigned int dqi_free_entry;
+ struct qtree_mem_dqinfo i;
};
#endif /* _LINUX_DQBLK_V2_H */
OpenPOWER on IntegriCloud