aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dqblk_v2.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2005-06-24 01:01:03 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-24 03:05:19 -0400
commit4e5117ba0af4582b6ec9164874f719d7f3f1eb2b (patch)
treed667e418571366ecea1188cb113e786a4a1d7f5c /include/linux/dqblk_v2.h
parentbd6a1f16fffdfe010fdc2979fd01f12357816762 (diff)
[PATCH] quota: improve credits estimates
Improve estimates on the number of needed credits for quota transaction. Now we distinguish blocks that might need to be allocated and blocks that only need to be rewritten. Also we distinguish deleting of a quota structure and creating of a new one. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/dqblk_v2.h')
-rw-r--r--include/linux/dqblk_v2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/dqblk_v2.h b/include/linux/dqblk_v2.h
index 4a6c5f6867b..4f853322cb7 100644
--- a/include/linux/dqblk_v2.h
+++ b/include/linux/dqblk_v2.h
@@ -10,6 +10,12 @@
10/* id numbers of quota format */ 10/* id numbers of quota format */
11#define QFMT_VFS_V0 2 11#define QFMT_VFS_V0 2
12 12
13/* Numbers of blocks needed for updates */
14#define V2_INIT_ALLOC 4
15#define V2_INIT_REWRITE 2
16#define V2_DEL_ALLOC 0
17#define V2_DEL_REWRITE 6
18
13/* Inmemory copy of version specific information */ 19/* Inmemory copy of version specific information */
14struct v2_mem_dqinfo { 20struct v2_mem_dqinfo {
15 unsigned int dqi_blocks; 21 unsigned int dqi_blocks;