diff options
author | Chengguang Xu <cgxu519@gmail.com> | 2019-05-05 21:39:03 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-05-20 04:50:48 -0400 |
commit | f44840ad1f822d9ecee6a3f91f2d17825a361307 (patch) | |
tree | 0a85beec33e5cf919bf290580e2f980c4a3a2fa5 | |
parent | a188339ca5a396acc588e5851ed7e19f66b0ebd9 (diff) |
quota: add dqi_dirty_list description to comment of Dquot List Management
Actually there are four lists for dquot management, so add
the description of dqui_dirty_list to comment.
Signed-off-by: Chengguang Xu <cgxu519@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | fs/quota/dquot.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 9ad72ea7f71f..f9b8602d5f2d 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c | |||
@@ -223,9 +223,9 @@ static void put_quota_format(struct quota_format_type *fmt) | |||
223 | 223 | ||
224 | /* | 224 | /* |
225 | * Dquot List Management: | 225 | * Dquot List Management: |
226 | * The quota code uses three lists for dquot management: the inuse_list, | 226 | * The quota code uses four lists for dquot management: the inuse_list, |
227 | * free_dquots, and dquot_hash[] array. A single dquot structure may be | 227 | * free_dquots, dqi_dirty_list, and dquot_hash[] array. A single dquot |
228 | * on all three lists, depending on its current state. | 228 | * structure may be on some of those lists, depending on its current state. |
229 | * | 229 | * |
230 | * All dquots are placed to the end of inuse_list when first created, and this | 230 | * All dquots are placed to the end of inuse_list when first created, and this |
231 | * list is used for invalidate operation, which must look at every dquot. | 231 | * list is used for invalidate operation, which must look at every dquot. |
@@ -236,6 +236,11 @@ static void put_quota_format(struct quota_format_type *fmt) | |||
236 | * dqstats.free_dquots gives the number of dquots on the list. When | 236 | * dqstats.free_dquots gives the number of dquots on the list. When |
237 | * dquot is invalidated it's completely released from memory. | 237 | * dquot is invalidated it's completely released from memory. |
238 | * | 238 | * |
239 | * Dirty dquots are added to the dqi_dirty_list of quota_info when mark | ||
240 | * dirtied, and this list is searched when writing dirty dquots back to | ||
241 | * quota file. Note that some filesystems do dirty dquot tracking on their | ||
242 | * own (e.g. in a journal) and thus don't use dqi_dirty_list. | ||
243 | * | ||
239 | * Dquots with a specific identity (device, type and id) are placed on | 244 | * Dquots with a specific identity (device, type and id) are placed on |
240 | * one of the dquot_hash[] hash chains. The provides an efficient search | 245 | * one of the dquot_hash[] hash chains. The provides an efficient search |
241 | * mechanism to locate a specific dquot. | 246 | * mechanism to locate a specific dquot. |