]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.25/patches.fixes/ocfs2-dlm-tweak-mle_state-output.patch
Removed old xen patchset
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.fixes / ocfs2-dlm-tweak-mle_state-output.patch
diff --git a/src/patches/suse-2.6.27.25/patches.fixes/ocfs2-dlm-tweak-mle_state-output.patch b/src/patches/suse-2.6.27.25/patches.fixes/ocfs2-dlm-tweak-mle_state-output.patch
deleted file mode 100644 (file)
index 0cbcbb0..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-From: Sunil Mushran <sunil.mushran@oracle.com>
-Date: Thu, 26 Feb 2009 15:00:49 -0800
-Subject: ocfs2/dlm: Tweak mle_state output
-Patch-mainline: 2.6.30
-References: bnc#408304
-
-The debugfs file, mle_state, now prints the number of largest number of mles
-in one hash link.
-
-Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
-Signed-off-by: Mark Fasheh <mfasheh@suse.com>
----
- fs/ocfs2/dlm/dlmdebug.c |    7 +++++--
- 1 files changed, 5 insertions(+), 2 deletions(-)
-
-Index: linux-2.6.27-sle11_ocfs2_update2/fs/ocfs2/dlm/dlmdebug.c
-===================================================================
---- linux-2.6.27-sle11_ocfs2_update2.orig/fs/ocfs2/dlm/dlmdebug.c
-+++ linux-2.6.27-sle11_ocfs2_update2/fs/ocfs2/dlm/dlmdebug.c
-@@ -494,7 +494,7 @@ static int debug_mle_print(struct dlm_ct
-       struct hlist_head *bucket;
-       struct hlist_node *list;
-       int i, out = 0;
--      unsigned long total = 0;
-+      unsigned long total = 0, longest = 0, bktcnt;
-       out += snprintf(db->buf + out, db->len - out,
-                       "Dumping MLEs for Domain: %s\n", dlm->name);
-@@ -506,15 +506,18 @@ static int debug_mle_print(struct dlm_ct
-                       mle = hlist_entry(list, struct dlm_master_list_entry,
-                                         master_hash_node);
-                       ++total;
-+                      ++bktcnt;
-                       if (db->len - out < 200)
-                               continue;
-                       out += dump_mle(mle, db->buf + out, db->len - out);
-               }
-+              longest = max(longest, bktcnt);
-+              bktcnt = 0;
-       }
-       spin_unlock(&dlm->master_lock);
-       out += snprintf(db->buf + out, db->len - out,
--                      "Total on list: %ld\n", total);
-+                      "Total: %ld, Longest: %ld\n", total, longest);
-       return out;
- }