File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -213,19 +213,33 @@ struct btrfs_delayed_ref_root {
213
213
*/
214
214
struct xarray dirty_extents ;
215
215
216
- /* this spin lock protects the rbtree and the entries inside */
216
+ /*
217
+ * Protects the rbtree href_root, its entries and the following fields:
218
+ * num_heads, num_heads_ready, pending_csums and run_delayed_start.
219
+ */
217
220
spinlock_t lock ;
218
221
219
- /* total number of head nodes in tree */
222
+ /* Total number of head refs, protected by the spinlock 'lock'. */
220
223
unsigned long num_heads ;
221
224
222
- /* total number of head nodes ready for processing */
225
+ /*
226
+ * Total number of head refs ready for processing, protected by the
227
+ * spinlock 'lock'.
228
+ */
223
229
unsigned long num_heads_ready ;
224
230
231
+ /*
232
+ * Track space reserved for deleting csums of data extents.
233
+ * Protected by the spinlock 'lock'.
234
+ */
225
235
u64 pending_csums ;
226
236
227
237
unsigned long flags ;
228
238
239
+ /*
240
+ * Track from which bytenr to start searching ref heads.
241
+ * Protected by the spinlock 'lock'.
242
+ */
229
243
u64 run_delayed_start ;
230
244
231
245
/*
You can’t perform that action at this time.
0 commit comments