diff options
Diffstat (limited to 'fs/ocfs2/ocfs2.h')
-rw-r--r-- | fs/ocfs2/ocfs2.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2.h b/fs/ocfs2/ocfs2.h index 1386281950db..18c1d9ec1c93 100644 --- a/fs/ocfs2/ocfs2.h +++ b/fs/ocfs2/ocfs2.h | |||
@@ -47,6 +47,9 @@ | |||
47 | #include "ocfs2_fs.h" | 47 | #include "ocfs2_fs.h" |
48 | #include "ocfs2_lockid.h" | 48 | #include "ocfs2_lockid.h" |
49 | 49 | ||
50 | /* For struct ocfs2_blockcheck_stats */ | ||
51 | #include "blockcheck.h" | ||
52 | |||
50 | /* Most user visible OCFS2 inodes will have very few pieces of | 53 | /* Most user visible OCFS2 inodes will have very few pieces of |
51 | * metadata, but larger files (including bitmaps, etc) must be taken | 54 | * metadata, but larger files (including bitmaps, etc) must be taken |
52 | * into account when designing an access scheme. We allow a small | 55 | * into account when designing an access scheme. We allow a small |
@@ -151,6 +154,16 @@ struct ocfs2_lock_res { | |||
151 | #endif | 154 | #endif |
152 | }; | 155 | }; |
153 | 156 | ||
157 | struct ocfs2_orphan_scan { | ||
158 | struct mutex os_lock; | ||
159 | struct ocfs2_super *os_osb; | ||
160 | struct ocfs2_lock_res os_lockres; /* lock to synchronize scans */ | ||
161 | struct delayed_work os_orphan_scan_work; | ||
162 | struct timespec os_scantime; /* time this node ran the scan */ | ||
163 | u32 os_count; /* tracks node specific scans */ | ||
164 | u32 os_seqno; /* tracks cluster wide scans */ | ||
165 | }; | ||
166 | |||
154 | struct ocfs2_dlm_debug { | 167 | struct ocfs2_dlm_debug { |
155 | struct kref d_refcnt; | 168 | struct kref d_refcnt; |
156 | struct dentry *d_locking_state; | 169 | struct dentry *d_locking_state; |
@@ -295,6 +308,7 @@ struct ocfs2_super | |||
295 | struct ocfs2_dinode *local_alloc_copy; | 308 | struct ocfs2_dinode *local_alloc_copy; |
296 | struct ocfs2_quota_recovery *quota_rec; | 309 | struct ocfs2_quota_recovery *quota_rec; |
297 | 310 | ||
311 | struct ocfs2_blockcheck_stats osb_ecc_stats; | ||
298 | struct ocfs2_alloc_stats alloc_stats; | 312 | struct ocfs2_alloc_stats alloc_stats; |
299 | char dev_str[20]; /* "major,minor" of the device */ | 313 | char dev_str[20]; /* "major,minor" of the device */ |
300 | 314 | ||
@@ -341,6 +355,8 @@ struct ocfs2_super | |||
341 | unsigned int *osb_orphan_wipes; | 355 | unsigned int *osb_orphan_wipes; |
342 | wait_queue_head_t osb_wipe_event; | 356 | wait_queue_head_t osb_wipe_event; |
343 | 357 | ||
358 | struct ocfs2_orphan_scan osb_orphan_scan; | ||
359 | |||
344 | /* used to protect metaecc calculation check of xattr. */ | 360 | /* used to protect metaecc calculation check of xattr. */ |
345 | spinlock_t osb_xattr_lock; | 361 | spinlock_t osb_xattr_lock; |
346 | 362 | ||