Skip to content

Commit

Permalink
ocfs2: Update dlmglue for new dlmlock() API
Browse files Browse the repository at this point in the history
File system lock names are very regular right now, so we really only need to
pass an extra parameter to dlmlock().

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
  • Loading branch information
Mark Fasheh committed Sep 24, 2006
1 parent ea5b3a1 commit f068106
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/ocfs2/dlmglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,7 @@ static int ocfs2_lock_create(struct ocfs2_super *osb,
&lockres->l_lksb,
dlm_flags,
lockres->l_name,
OCFS2_LOCK_ID_MAX_LEN - 1,
lockres->l_ops->ast,
lockres,
lockres->l_ops->bast);
Expand Down Expand Up @@ -999,6 +1000,7 @@ static int ocfs2_cluster_lock(struct ocfs2_super *osb,
&lockres->l_lksb,
lkm_flags|LKM_CONVERT|LKM_VALBLK,
lockres->l_name,
OCFS2_LOCK_ID_MAX_LEN - 1,
lockres->l_ops->ast,
lockres,
lockres->l_ops->bast);
Expand Down Expand Up @@ -2419,6 +2421,7 @@ static int ocfs2_downconvert_lock(struct ocfs2_super *osb,
&lockres->l_lksb,
dlm_flags,
lockres->l_name,
OCFS2_LOCK_ID_MAX_LEN - 1,
lockres->l_ops->ast,
lockres,
lockres->l_ops->bast);
Expand Down

0 comments on commit f068106

Please sign in to comment.