diff options
author | Jan Kara <jack@suse.cz> | 2008-10-20 17:50:38 -0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-01-05 11:40:24 -0500 |
commit | 2205363dce7447b8e85f1ead14387664c1a98753 (patch) | |
tree | 729b2716f2e31bda2e035a11cc39aa5472dff2c4 /fs/ocfs2/ocfs2.h | |
parent | 171bf93ce11f4c9929fdce6ce63df8da2f3c4475 (diff) |
ocfs2: Implement quota recovery
Implement functions for recovery after a crash. Functions just
read local quota file and sync info to global quota file.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/ocfs2.h')
-rw-r--r-- | fs/ocfs2/ocfs2.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ocfs2/ocfs2.h b/fs/ocfs2/ocfs2.h index f04b229fc757..6b25b4aa7205 100644 --- a/fs/ocfs2/ocfs2.h +++ b/fs/ocfs2/ocfs2.h | |||
@@ -206,6 +206,7 @@ enum ocfs2_mount_options | |||
206 | struct ocfs2_journal; | 206 | struct ocfs2_journal; |
207 | struct ocfs2_slot_info; | 207 | struct ocfs2_slot_info; |
208 | struct ocfs2_recovery_map; | 208 | struct ocfs2_recovery_map; |
209 | struct ocfs2_quota_recovery; | ||
209 | struct ocfs2_super | 210 | struct ocfs2_super |
210 | { | 211 | { |
211 | struct task_struct *commit_task; | 212 | struct task_struct *commit_task; |
@@ -287,10 +288,11 @@ struct ocfs2_super | |||
287 | char *local_alloc_debug_buf; | 288 | char *local_alloc_debug_buf; |
288 | #endif | 289 | #endif |
289 | 290 | ||
290 | /* Next two fields are for local node slot recovery during | 291 | /* Next three fields are for local node slot recovery during |
291 | * mount. */ | 292 | * mount. */ |
292 | int dirty; | 293 | int dirty; |
293 | struct ocfs2_dinode *local_alloc_copy; | 294 | struct ocfs2_dinode *local_alloc_copy; |
295 | struct ocfs2_quota_recovery *quota_rec; | ||
294 | 296 | ||
295 | struct ocfs2_alloc_stats alloc_stats; | 297 | struct ocfs2_alloc_stats alloc_stats; |
296 | char dev_str[20]; /* "major,minor" of the device */ | 298 | char dev_str[20]; /* "major,minor" of the device */ |