diff options
author | Jan Kara <jack@suse.cz> | 2005-06-24 01:01:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:05:19 -0400 |
commit | 4e5117ba0af4582b6ec9164874f719d7f3f1eb2b (patch) | |
tree | d667e418571366ecea1188cb113e786a4a1d7f5c /include/linux/quota.h | |
parent | bd6a1f16fffdfe010fdc2979fd01f12357816762 (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/quota.h')
-rw-r--r-- | include/linux/quota.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h index ac5b90f4f256..700ead45084f 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h | |||
@@ -138,8 +138,11 @@ struct if_dqinfo { | |||
138 | #include <linux/dqblk_v2.h> | 138 | #include <linux/dqblk_v2.h> |
139 | 139 | ||
140 | /* Maximal numbers of writes for quota operation (insert/delete/update) | 140 | /* Maximal numbers of writes for quota operation (insert/delete/update) |
141 | * (over all formats) - info block, 4 pointer blocks, data block */ | 141 | * (over VFS all formats) */ |
142 | #define DQUOT_MAX_WRITES 6 | 142 | #define DQUOT_INIT_ALLOC max(V1_INIT_ALLOC, V2_INIT_ALLOC) |
143 | #define DQUOT_INIT_REWRITE max(V1_INIT_REWRITE, V2_INIT_REWRITE) | ||
144 | #define DQUOT_DEL_ALLOC max(V1_DEL_ALLOC, V2_DEL_ALLOC) | ||
145 | #define DQUOT_DEL_REWRITE max(V1_DEL_REWRITE, V2_DEL_REWRITE) | ||
143 | 146 | ||
144 | /* | 147 | /* |
145 | * Data for one user/group kept in memory | 148 | * Data for one user/group kept in memory |