diff options
author | Tao Ma <tao.ma@oracle.com> | 2010-06-01 01:58:13 -0400 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-09-10 11:35:51 -0400 |
commit | 3c3f20c9813391ba4004764072989744395cf405 (patch) | |
tree | d02ae291a1d9d591398b956fb8f0dac90f032af3 /fs/ocfs2/journal.c | |
parent | ddee5cdb70e6f87de2fc696b87bd7bd184a51eb8 (diff) |
ocfs2: Add some trace log for orphan scan.
Now orphan scan worker has no trace log, so it is
very hard to tell whether it is finished or blocked.
So add 2 mlog trace log so that we can tell whether
the current orphan scan worker is blocked or not.
It does help when I analyzed a orphan scan bug.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/journal.c')
-rw-r--r-- | fs/ocfs2/journal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c index 9b57c0350ff9..04d41dfeab9a 100644 --- a/fs/ocfs2/journal.c +++ b/fs/ocfs2/journal.c | |||
@@ -1888,6 +1888,8 @@ void ocfs2_queue_orphan_scan(struct ocfs2_super *osb) | |||
1888 | 1888 | ||
1889 | os = &osb->osb_orphan_scan; | 1889 | os = &osb->osb_orphan_scan; |
1890 | 1890 | ||
1891 | mlog(0, "Begin orphan scan\n"); | ||
1892 | |||
1891 | if (atomic_read(&os->os_state) == ORPHAN_SCAN_INACTIVE) | 1893 | if (atomic_read(&os->os_state) == ORPHAN_SCAN_INACTIVE) |
1892 | goto out; | 1894 | goto out; |
1893 | 1895 | ||
@@ -1920,6 +1922,7 @@ void ocfs2_queue_orphan_scan(struct ocfs2_super *osb) | |||
1920 | unlock: | 1922 | unlock: |
1921 | ocfs2_orphan_scan_unlock(osb, seqno); | 1923 | ocfs2_orphan_scan_unlock(osb, seqno); |
1922 | out: | 1924 | out: |
1925 | mlog(0, "Orphan scan completed\n"); | ||
1923 | return; | 1926 | return; |
1924 | } | 1927 | } |
1925 | 1928 | ||