summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/journal.c
diff options
context:
space:
mode:
authorSunil Mushran2009-06-20 01:53:18 +0200
committerJoel Becker2009-06-22 23:24:53 +0200
commit3211949f8998dde71d9fe2e063de045ece5e0473 (patch)
tree3aed155421642a6e04c94e0c5c521dea54e0b029 /fs/ocfs2/journal.c
parentocfs2: Stop orphan scan as early as possible during umount (diff)
downloadkernel-qcow2-linux-3211949f8998dde71d9fe2e063de045ece5e0473.tar.gz
kernel-qcow2-linux-3211949f8998dde71d9fe2e063de045ece5e0473.tar.xz
kernel-qcow2-linux-3211949f8998dde71d9fe2e063de045ece5e0473.zip
ocfs2: Do not initialize lvb in ocfs2_orphan_scan_lock_res_init()
We don't access the LVB in our ocfs2_*_lock_res_init() functions. Since the LVB can become invalid during some cluster recovery operations, the dlmglue must be able to handle an uninitialized LVB. For the orphan scan lock, we initialized an uninitialzed LVB with our scan sequence number plus one. This starts a normal orphan scan cycle. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/journal.c')
-rw-r--r--fs/ocfs2/journal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c
index 70215a21fb20..0b2c27a9485e 100644
--- a/fs/ocfs2/journal.c
+++ b/fs/ocfs2/journal.c
@@ -1952,6 +1952,7 @@ int ocfs2_orphan_scan_init(struct ocfs2_super *osb)
atomic_set(&os->os_state, ORPHAN_SCAN_ACTIVE);
os->os_osb = osb;
os->os_count = 0;
+ os->os_seqno = 0;
os->os_scantime = CURRENT_TIME;
mutex_init(&os->os_lock);