Skip to content

Commit

Permalink
ocfs2: Add some trace log for orphan scan.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tao Ma authored and Joel Becker committed Sep 10, 2010
1 parent ddee5cd commit 3c3f20c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/ocfs2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1888,6 +1888,8 @@ void ocfs2_queue_orphan_scan(struct ocfs2_super *osb)

os = &osb->osb_orphan_scan;

mlog(0, "Begin orphan scan\n");

if (atomic_read(&os->os_state) == ORPHAN_SCAN_INACTIVE)
goto out;

Expand Down Expand Up @@ -1920,6 +1922,7 @@ void ocfs2_queue_orphan_scan(struct ocfs2_super *osb)
unlock:
ocfs2_orphan_scan_unlock(osb, seqno);
out:
mlog(0, "Orphan scan completed\n");
return;
}

Expand Down

0 comments on commit 3c3f20c

Please sign in to comment.