aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlmglue.c
diff options
context:
space:
mode:
authorMark Fasheh <mfasheh@suse.com>2008-02-01 14:59:09 -0500
committerMark Fasheh <mfasheh@suse.com>2008-04-18 11:56:02 -0400
commit8e8a4603b5422c9145880e73b23bc4c2c4de0098 (patch)
tree4d388ae74ed9e5f8cfec19ff20d07d81ca742592 /fs/ocfs2/dlmglue.c
parent4b119e21d0c66c22e8ca03df05d9de623d0eb50f (diff)
ocfs2: Move slot map access into slot_map.c
journal.c and dlmglue.c would refresh the slot map by hand. Instead, have the update and clear functions do the work inside slot_map.c. The eventual result is to make ocfs2_slot_info defined privately in slot_map.c Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/dlmglue.c')
-rw-r--r--fs/ocfs2/dlmglue.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
index 1f1873bf41fb..1a80fa9e7c9a 100644
--- a/fs/ocfs2/dlmglue.c
+++ b/fs/ocfs2/dlmglue.c
@@ -2132,8 +2132,6 @@ int ocfs2_super_lock(struct ocfs2_super *osb,
2132 int status = 0; 2132 int status = 0;
2133 int level = ex ? LKM_EXMODE : LKM_PRMODE; 2133 int level = ex ? LKM_EXMODE : LKM_PRMODE;
2134 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; 2134 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres;
2135 struct buffer_head *bh;
2136 struct ocfs2_slot_info *si = osb->slot_info;
2137 2135
2138 mlog_entry_void(); 2136 mlog_entry_void();
2139 2137
@@ -2159,11 +2157,7 @@ int ocfs2_super_lock(struct ocfs2_super *osb,
2159 goto bail; 2157 goto bail;
2160 } 2158 }
2161 if (status) { 2159 if (status) {
2162 bh = si->si_bh; 2160 status = ocfs2_refresh_slot_info(osb);
2163 status = ocfs2_read_block(osb, bh->b_blocknr, &bh, 0,
2164 si->si_inode);
2165 if (status == 0)
2166 ocfs2_update_slot_info(si);
2167 2161
2168 ocfs2_complete_lock_res_refresh(lockres, status); 2162 ocfs2_complete_lock_res_refresh(lockres, status);
2169 2163