Displaying 4 results from an estimated 4 matches for "rm_quota".
Did you mean:
repquota
2009 Feb 28
1
[PATCH 1/1] Patch to recover orphans in offline slots during recovery.
...)
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c
index 71b2ea4..5434eb4 100644
--- a/fs/ocfs2/journal.c
+++ b/fs/ocfs2/journal.c
@@ -1209,8 +1209,9 @@ static int __ocfs2_recovery_thread(void *arg)
struct ocfs2_super *osb = arg;
struct ocfs2_recovery_map *rm = osb->recovery_map;
int *rm_quota = NULL;
- int rm_quota_used = 0, i;
+ int rm_quota_used = 0, i, saveslots = 1;
struct ocfs2_quota_recovery *qrec;
+ int slot_arr[OCFS2_MAX_SLOTS];
mlog_entry_void();
@@ -1224,6 +1225,7 @@ static int __ocfs2_recovery_thread(void *arg)
status = -ENOMEM;
goto bail;
}
+
restart:
stat...
2009 Mar 31
0
[PATCH] ocfs2: remove some pointless conditionals before kfree()
...an capable of reclaiming unused space. */
- if (la_dinode)
- kfree(la_dinode);
+ kfree(la_dinode);
- if (tl_dinode)
- kfree(tl_dinode);
+ kfree(tl_dinode);
if (qrec)
ocfs2_free_quota_recovery(qrec);
@@ -1320,8 +1318,7 @@ bail:
mutex_unlock(&osb->recovery_lock);
- if (rm_quota)
- kfree(rm_quota);
+ kfree(rm_quota);
mlog_exit(status);
/* no one is callint kthread_stop() for us so the kthread() api
diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c
index ec70cdb..471597b 100644
--- a/fs/ocfs2/localalloc.c
+++ b/fs/ocfs2/localalloc.c
@@ -136,8 +136,7 @@ stati...
2009 Mar 04
2
[PATCH 1/1] Patch to recover orphans in offline slots during recovery and mount
...- osb->dirty = 0;
- }
+ osb->local_alloc_copy = NULL;
+ osb->dirty = 0;
+
+ /* queue recovery for offline slots */
+ ocfs2_queue_replay_slots(osb);
}
void ocfs2_complete_quota_recovery(struct ocfs2_super *osb)
@@ -1216,6 +1275,7 @@ static int __ocfs2_recovery_thread(void *arg)
int *rm_quota = NULL;
int rm_quota_used = 0, i;
struct ocfs2_quota_recovery *qrec;
+ int queued_offline_orphan_dirs = 0;
mlog_entry_void();
@@ -1236,6 +1296,20 @@ restart:
goto bail;
}
+ if (!queued_offline_orphan_dirs) {
+ status = ocfs2_compute_replay_slots(osb);
+ if (status < 0)
+ mlo...
2008 Dec 22
56
[git patches] Ocfs2 patches for merge window, batch 2/3
Hi,
This is the second batch of Ocfs2 patches intended for the merge window. The
1st batch were sent out previously:
http://lkml.org/lkml/2008/12/19/280
The bulk of this set is comprised of Jan Kara's patches to add quota support
to Ocfs2. Many of the quota patches are to generic code, which I carried to
make merging of the Ocfs2 support easier. All of the non-ocfs2 patches
should have