aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorGravatar Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com> 2016-11-07 15:59:16 +0800
committerGravatar David Sterba <dsterba@suse.com> 2016-11-30 13:45:14 +0100
commit939659dfd3ed4ff36dde532782207cfb0e5fbcf6 (patch)
tree402a2e85e4e0f75657b8a156d51c3ab6172636cb /fs/btrfs/ctree.h
parentbtrfs: cleanup: use already calculated value in btrfs_should_throttle_delayed... (diff)
downloadlinux-939659dfd3ed4ff36dde532782207cfb0e5fbcf6.tar.gz
linux-939659dfd3ed4ff36dde532782207cfb0e5fbcf6.tar.bz2
linux-939659dfd3ed4ff36dde532782207cfb0e5fbcf6.zip
btrfs: add necessary comments about tickets_id
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index e4e01a99201a..b26b8b363f7f 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -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;