dlmglue.c (c7c350e92aab1bba68f26a6027b734adcf9824ba) | dlmglue.c (8e8a4603b5422c9145880e73b23bc4c2c4de0098) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * dlmglue.c 5 * 6 * Code which implements an OCFS2 specific interface to our DLM. 7 * 8 * Copyright (C) 2003, 2004 Oracle. All rights reserved. --- 2118 unchanged lines hidden (view full) --- 2127} 2128 2129int ocfs2_super_lock(struct ocfs2_super *osb, 2130 int ex) 2131{ 2132 int status = 0; 2133 int level = ex ? LKM_EXMODE : LKM_PRMODE; 2134 struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * dlmglue.c 5 * 6 * Code which implements an OCFS2 specific interface to our DLM. 7 * 8 * Copyright (C) 2003, 2004 Oracle. All rights reserved. --- 2118 unchanged lines hidden (view full) --- 2127} 2128 2129int ocfs2_super_lock(struct ocfs2_super *osb, 2130 int ex) 2131{ 2132 int status = 0; 2133 int level = ex ? LKM_EXMODE : LKM_PRMODE; 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 2138 mlog_entry_void(); 2139 2140 if (ocfs2_is_hard_readonly(osb)) 2141 return -EROFS; 2142 2143 if (ocfs2_mount_local(osb)) 2144 goto bail; --- 9 unchanged lines hidden (view full) --- 2154 * refreshed, so we do it here. Of course, making sense of 2155 * everything is up to the caller :) */ 2156 status = ocfs2_should_refresh_lock_res(lockres); 2157 if (status < 0) { 2158 mlog_errno(status); 2159 goto bail; 2160 } 2161 if (status) { | 2135 2136 mlog_entry_void(); 2137 2138 if (ocfs2_is_hard_readonly(osb)) 2139 return -EROFS; 2140 2141 if (ocfs2_mount_local(osb)) 2142 goto bail; --- 9 unchanged lines hidden (view full) --- 2152 * refreshed, so we do it here. Of course, making sense of 2153 * everything is up to the caller :) */ 2154 status = ocfs2_should_refresh_lock_res(lockres); 2155 if (status < 0) { 2156 mlog_errno(status); 2157 goto bail; 2158 } 2159 if (status) { |
2162 bh = si->si_bh; 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); | 2160 status = ocfs2_refresh_slot_info(osb); |
2167 2168 ocfs2_complete_lock_res_refresh(lockres, status); 2169 2170 if (status < 0) 2171 mlog_errno(status); 2172 } 2173bail: 2174 mlog_exit(status); --- 1216 unchanged lines hidden --- | 2161 2162 ocfs2_complete_lock_res_refresh(lockres, status); 2163 2164 if (status < 0) 2165 mlog_errno(status); 2166 } 2167bail: 2168 mlog_exit(status); --- 1216 unchanged lines hidden --- |