diff options
Diffstat (limited to 'fs/ocfs2/ocfs2.h')
-rw-r--r-- | fs/ocfs2/ocfs2.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2.h b/fs/ocfs2/ocfs2.h index 1386281950d..1fde52c96d2 100644 --- a/fs/ocfs2/ocfs2.h +++ b/fs/ocfs2/ocfs2.h | |||
@@ -151,6 +151,14 @@ struct ocfs2_lock_res { | |||
151 | #endif | 151 | #endif |
152 | }; | 152 | }; |
153 | 153 | ||
154 | struct ocfs2_orphan_scan { | ||
155 | struct mutex os_lock; | ||
156 | struct ocfs2_super *os_osb; | ||
157 | struct ocfs2_lock_res os_lockres; /* lock to synchronize scans */ | ||
158 | struct delayed_work os_orphan_scan_work; | ||
159 | u32 os_seqno; /* incremented on every scan */ | ||
160 | }; | ||
161 | |||
154 | struct ocfs2_dlm_debug { | 162 | struct ocfs2_dlm_debug { |
155 | struct kref d_refcnt; | 163 | struct kref d_refcnt; |
156 | struct dentry *d_locking_state; | 164 | struct dentry *d_locking_state; |
@@ -341,6 +349,8 @@ struct ocfs2_super | |||
341 | unsigned int *osb_orphan_wipes; | 349 | unsigned int *osb_orphan_wipes; |
342 | wait_queue_head_t osb_wipe_event; | 350 | wait_queue_head_t osb_wipe_event; |
343 | 351 | ||
352 | struct ocfs2_orphan_scan osb_orphan_scan; | ||
353 | |||
344 | /* used to protect metaecc calculation check of xattr. */ | 354 | /* used to protect metaecc calculation check of xattr. */ |
345 | spinlock_t osb_xattr_lock; | 355 | spinlock_t osb_xattr_lock; |
346 | 356 | ||