aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dqblk_v1.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_v1.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_v1.h')
-rw-r--r--include/linux/dqblk_v1.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/dqblk_v1.h b/include/linux/dqblk_v1.h
index 42fbf4797156..57f1250d5a52 100644
--- a/include/linux/dqblk_v1.h
+++ b/include/linux/dqblk_v1.h
@@ -11,6 +11,12 @@
11/* Root squash turned on */ 11/* Root squash turned on */
12#define V1_DQF_RSQUASH 1 12#define V1_DQF_RSQUASH 1
13 13
14/* Numbers of blocks needed for updates */
15#define V1_INIT_ALLOC 1
16#define V1_INIT_REWRITE 1
17#define V1_DEL_ALLOC 0
18#define V1_DEL_REWRITE 2
19
14/* Special information about quotafile */ 20/* Special information about quotafile */
15struct v1_mem_dqinfo { 21struct v1_mem_dqinfo {
16}; 22};