diff options
Diffstat (limited to 'fs/btrfs/delayed-inode.h')
-rw-r--r-- | fs/btrfs/delayed-inode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/delayed-inode.h b/fs/btrfs/delayed-inode.h index 78b6ad0fc669..1d5c5f7abe3e 100644 --- a/fs/btrfs/delayed-inode.h +++ b/fs/btrfs/delayed-inode.h | |||
@@ -43,6 +43,7 @@ struct btrfs_delayed_root { | |||
43 | */ | 43 | */ |
44 | struct list_head prepare_list; | 44 | struct list_head prepare_list; |
45 | atomic_t items; /* for delayed items */ | 45 | atomic_t items; /* for delayed items */ |
46 | atomic_t items_seq; /* for delayed items */ | ||
46 | int nodes; /* for delayed nodes */ | 47 | int nodes; /* for delayed nodes */ |
47 | wait_queue_head_t wait; | 48 | wait_queue_head_t wait; |
48 | }; | 49 | }; |
@@ -86,6 +87,7 @@ static inline void btrfs_init_delayed_root( | |||
86 | struct btrfs_delayed_root *delayed_root) | 87 | struct btrfs_delayed_root *delayed_root) |
87 | { | 88 | { |
88 | atomic_set(&delayed_root->items, 0); | 89 | atomic_set(&delayed_root->items, 0); |
90 | atomic_set(&delayed_root->items_seq, 0); | ||
89 | delayed_root->nodes = 0; | 91 | delayed_root->nodes = 0; |
90 | spin_lock_init(&delayed_root->lock); | 92 | spin_lock_init(&delayed_root->lock); |
91 | init_waitqueue_head(&delayed_root->wait); | 93 | init_waitqueue_head(&delayed_root->wait); |