btrfs: add necessary comments about tickets_id
authorWang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Mon, 7 Nov 2016 07:59:16 +0000 (15:59 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 Nov 2016 12:45:14 +0000 (13:45 +0100)
Tickets_id's name may result in some misunderstandings,  it just indicates
the next ticket will be handled and is not stored per ticket.

Fixes: ce12965 ("btrfs: introduce tickets_id to determine whether
asynchronous metadata reclaim work makes progress")
Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h

index e4e01a99201a1cc20664128095704e4737f28fab..b26b8b363f7f25c56c1a5b5ad6947ef62b4679b9 100644 (file)
@@ -426,6 +426,10 @@ struct btrfs_space_info {
        struct list_head ro_bgs;
        struct list_head priority_tickets;
        struct list_head tickets;
+       /*
+        * tickets_id just indicates the next ticket will be handled, so note
+        * it's not stored per ticket.
+        */
        u64 tickets_id;
 
        struct rw_semaphore groups_sem;