aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/journal.c
diff options
context:
space:
mode:
authorSrinivas Eeda <srinivas.eeda@oracle.com>2009-06-03 20:02:56 -0400
committerJoel Becker <joel.becker@oracle.com>2009-06-03 22:14:31 -0400
commit15633a220ffe74fc61bc8117e6a89a494011ea3d (patch)
tree18bf3b92b4ec3988f78c5e07b1471b8f89a2f474 /fs/ocfs2/journal.c
parent83273932fbefb6ceef9c0b82ac4d23900728f4d9 (diff)
ocfs2 patch to track delayed orphan scan timer statistics
Patch to track delayed orphan scan timer statistics. Modifies ocfs2_osb_dump to print the following: Orphan Scan=> Local: 10 Global: 21 Last Scan: 67 seconds ago Signed-off-by: Srinivas Eeda <srinivas.eeda@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/journal.c')
-rw-r--r--fs/ocfs2/journal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c
index 44ed768782ed..4a3b9e6b31ad 100644
--- a/fs/ocfs2/journal.c
+++ b/fs/ocfs2/journal.c
@@ -1900,6 +1900,8 @@ void ocfs2_queue_orphan_scan(struct ocfs2_super *osb)
1900 * number and update LVB so other node will skip the scan for a while 1900 * number and update LVB so other node will skip the scan for a while
1901 */ 1901 */
1902 seqno++; 1902 seqno++;
1903 os->os_count++;
1904 os->os_scantime = CURRENT_TIME;
1903unlock: 1905unlock:
1904 ocfs2_orphan_scan_unlock(osb, seqno, DLM_LOCK_EX); 1906 ocfs2_orphan_scan_unlock(osb, seqno, DLM_LOCK_EX);
1905out: 1907out:
@@ -1939,6 +1941,8 @@ int ocfs2_orphan_scan_init(struct ocfs2_super *osb)
1939 1941
1940 os = &osb->osb_orphan_scan; 1942 os = &osb->osb_orphan_scan;
1941 os->os_osb = osb; 1943 os->os_osb = osb;
1944 os->os_count = 0;
1945 os->os_scantime = CURRENT_TIME;
1942 mutex_init(&os->os_lock); 1946 mutex_init(&os->os_lock);
1943 1947
1944 INIT_DELAYED_WORK(&os->os_orphan_scan_work, 1948 INIT_DELAYED_WORK(&os->os_orphan_scan_work,