Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180355
b: refs/heads/master
c: e5f2cb2
h: refs/heads/master
i:
  180353: 949f496
  180351: 46a6335
v: v3
  • Loading branch information
Wengang Wang authored and Joel Becker committed Jan 26, 2010
1 parent a3c2564 commit 34d7f21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1097df3ffe855eb1476496fa5394816fb197af05
refs/heads/master: e5f2cb2b1ad05473fffe6970618997b906f23873
12 changes: 6 additions & 6 deletions trunk/fs/ocfs2/stack_o2cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static int o2cb_cluster_connect(struct ocfs2_cluster_connection *conn)
u32 dlm_key;
struct dlm_ctxt *dlm;
struct o2dlm_private *priv;
struct dlm_protocol_version dlm_version;
struct dlm_protocol_version fs_version;

BUG_ON(conn == NULL);
BUG_ON(o2cb_stack.sp_proto == NULL);
Expand All @@ -304,18 +304,18 @@ static int o2cb_cluster_connect(struct ocfs2_cluster_connection *conn)
/* used by the dlm code to make message headers unique, each
* node in this domain must agree on this. */
dlm_key = crc32_le(0, conn->cc_name, conn->cc_namelen);
dlm_version.pv_major = conn->cc_version.pv_major;
dlm_version.pv_minor = conn->cc_version.pv_minor;
fs_version.pv_major = conn->cc_version.pv_major;
fs_version.pv_minor = conn->cc_version.pv_minor;

dlm = dlm_register_domain(conn->cc_name, dlm_key, &dlm_version);
dlm = dlm_register_domain(conn->cc_name, dlm_key, &fs_version);
if (IS_ERR(dlm)) {
rc = PTR_ERR(dlm);
mlog_errno(rc);
goto out_free;
}

conn->cc_version.pv_major = dlm_version.pv_major;
conn->cc_version.pv_minor = dlm_version.pv_minor;
conn->cc_version.pv_major = fs_version.pv_major;
conn->cc_version.pv_minor = fs_version.pv_minor;
conn->cc_lockspace = dlm;

dlm_register_eviction_cb(dlm, &priv->op_eviction_cb);
Expand Down

0 comments on commit 34d7f21

Please sign in to comment.